Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [django]

Django, "the web framework for perfectionists with deadlines", is a Python-based framework for creating web applications. With a powerful object-based database mapper, a clean syntax for mapping URLs to views, a simple template language and a convenient automatically generated administration interface, Django is the most popular of the Python web frameworks.

0
votes
1answer
16 views

FATAL: password authentication failed for user that I just created, with a correct password.I

I installed postgres with Django following this guide Here I created a database and a user in the postgres command line : CREATE DATABASE myProject; CREATE USER myUser WITH PASSWORD '1234'; When I ...
2
votes
1answer
42 views

How to transition from a local Django devlopment server to a restricted public test server?

I am working on a website that should not be open for public viewing. I'm currently developing on my local computer using manage.py and runserver. However, I want to make the site publicly accessible ...
0
votes
0answers
6 views

Proxy Static Django Production with Apache

DEBUG = False <<--- Django (Production mode) I have an external django server that I need to access using the apache proxy. The system works fine, but static files are not loaded. Where I ...
0
votes
1answer
14 views

How can I set up django with apache? [closed]

I am new in django/python. I am currently using django's in-built server for development. I want to configure apache to run django. As with some google search, I found that I need mod_wsgi, which I ...
0
votes
0answers
15 views

Deploy one django project with multiple app on multiple subdomains on AWS EC2

I have one django project which contains 2apps namely, admin and api. The admin app is dependent on api app to access the models. I have 2 subdomains like: admin.xxxx.com and api.xxxx.com. This ...
0
votes
0answers
12 views

Why is Nginx displaying a “502 Bad Gateway Error”? [duplicate]

I'm trying to create a PyPI (Python) package repository on a Debian 8 server running Nginx 1.6.2. I want to make all the files in a particular directory tree available for downloading to my other ...
1
vote
0answers
28 views

How to run more than one django sites using same virtual environment as subdirectories in apache?

I have an unmanged vps. I have 3 django sites sitename_dev, sitename_staging, sitename_live which are run using a virtual env. All 3 are default django instances with no changes made. I have ...
0
votes
0answers
35 views

Configure apache for lets-encrypt and django

I am able to set up my domain for https without problems with the following example.com.conf file: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com DocumentRoot ...
1
vote
0answers
11 views

Turnkey Django throwing 404 with altered apache config file

I am setting up a Turnkey Django solution and it works perfectly fine if you use the pre-built Django project they provide. But it's a pain to work with and breaks many of the rules and guidelines in ...
1
vote
0answers
27 views

Can I setup virtual environments for different python versions?

I need to setup local webserver that serves several django apps and I have comparatively little linux (lubuntu 18.04) experience. Problem is that one of these apps are written in python2 and others ...
0
votes
1answer
13 views

How to activate the API in Pootle 2.8.2

I'm wondering does the Pootle API work the same in version 2.8.2 as in version 2.5.1? I don't see any updated docs for the API in Pootle 2.8.2, the last I see is https://pootle.readthedocs.io/en/...
0
votes
1answer
16 views

Running Pootle server under Apache with mod_wsgi on ubuntu server

I have successfully installed a pootle server in a localhost environment using the django default server following the instructions found here: http://docs.translatehouse.org/projects/pootle/en/stable-...
0
votes
0answers
39 views

Trying to setup a Django app using gunicorn and systemd

Trying to setup a Django app using Gunicorn and Systemd while following this tutorial by DigitalOcean. When I run curl --unix-socket /run/gunicorn.sock localhost, it returns with curl: (56) Recv ...
0
votes
1answer
218 views

Installing Shapely on Alpine docker

I am trying to move my project to docker and I've been using the alpine variant. This is a django project with postgres database Here is how i install the dependencies: ... ADD ./requirements.txt /...
-1
votes
1answer
39 views

Error: ip address not working After the giving to nginx

I am deploying the django app to digitalocean my ip address is not working after the sudo vim /etc/nginx/sites-available/lok in nginx .I added to the my nginx is as follows upstream app_server { ...
3
votes
4answers
137 views

How do I implement SSL on a private IP?

I am developing a network management product. We ship our product to customers as a VM, which they install on a hypervisor in their network. These VMs are given static, private IP addresses in the ...
0
votes
1answer
24 views

How to allow a Django application running on Apache to access a remote directory mounted with sshfs

I have a Django application that access a remote directory mounted with sshfs to upload files. The Django application has to read those files as well. The setup is running fine with the Django server (...
0
votes
0answers
13 views

Reviewboard installation with Apache, shows files instead of site

Installing reviewboard on centos 7. Web server : Apache running on port 8080 After i finished the installation it shows me directory listing when i access it from browser. Below is my apache-wsgi....
0
votes
1answer
452 views

Django 2.1 deployment on centos 7 with apache, mod_wsgi, python3 venv

I've stumbled with this seemingly most relevant deployment option because guides seem to either reference mod_wsgi with python2, or deployment on deb based systems where expected paths are different. ...
0
votes
1answer
48 views

Allow/block access to a specific path with apache 2.4 failing

I have a django website project deployed in an enviroment from AWS Beanstalk. I'm trying write configs to apache block access to a specific path (/admin). I avoid change wsgi.conf file, instead I ...
2
votes
1answer
435 views

How to set environment variables for the CI/CD in GitLab when using Auto DevOps (with GCP Kubernetes)?

I'm having quite a few moving parts here, so, I'm not sure what's wrong yet. I set up my variable this way: but during the build phase, I get this failure (it's a Django application): raise ...
1
vote
1answer
53 views

How to store database credentials in Google App Engine Standard?

I'm experimenting with hosting a Django application on Google App Engine Standard and to do that I followed the tutorial Running Django on App Engine Standard Environment. That tutorial completely ...
0
votes
1answer
82 views

How do I execute manage.py in Google App Engine?

I followed this tutorial: https://codeburst.io/beginners-guide-to-deploying-a-django-postgresql-project-on-google-cloud-s-flexible-app-engine-e3357b601b91 to get a Django app deployed to Google App ...
0
votes
1answer
130 views

IIS slow file upload

I have an interesting problem - I have my own IIS 2016 server, that I use to host a website which allows the users to upload a variety of files - some in text format, the others zip'ed up together. ...
0
votes
1answer
121 views

Heroku Django App Very Slow

I have a Django app deployed on Heroku and it is VERY slow! I'm making small queries and I'm waiting a long time (10-15+ seconds to load 12 items (a 41KB request). I'm using the Insomnia tool to ...
0
votes
0answers
76 views

redis not following redis.conf settings

I am running redis server and have set the dir to /var/lib/redis and dbfilename to dump.rdb in the redis.conf file but i notice redis starts to produce these errors below 120844:C 23 Sep 02:59:31.098 ...
1
vote
1answer
884 views

Static files are not found when running django + gunicorn + nginx on docker

I know it's well answered question but non of ones I've found seems to work for me. I have simple django project and I'm trying to run it on Docker with gunicorn and nginx. Below is my configuration ...
0
votes
0answers
99 views

Unable to publish Django webserver on CentOS 7

I was working on my machine for Django project, and moved the project files to Linux server to publish the app. Currently I'm not interested in using gunicorn or nginx. I just would like to see if I ...
2
votes
1answer
91 views

hide port in ngnix and display site-link instead

I have already tried suggestions mentioned in: Hide port in Nginx reverse proxy redirection but it does not help me. I have done nginx reverse proxy for my django+gunicorn application and it is ...
0
votes
0answers
50 views

Cannot use mod_wsgi-express to serve a site on https

I have a django site. I downloaded letsencrypt certificates for mysite.com and tried to run mod_wsgi-express like this: mod_wsgi-express start-server --log-to-terminal --startup-log --https-port 443 -...
0
votes
0answers
186 views

page 404 served with 200 response status nginx gnunicorn django

I'm setting up error pages on a django site in dev I get the error with the good status code but on production the HTTP responses code does not match, I'm receiving 200 response on 404. I assume that ...
0
votes
2answers
101 views

How to configure Django application at http://SERVER-IP/ instead of http://SERVER-IP/Project using bitnami aws?

I want to serve Django application at http://SERVER-IP/ OR a domain (www.example.com) instead of http://SERVER-IP/Project (www.example.com/Project) using BITNAMI Django Stack(v4.2). I followed the ...
0
votes
0answers
272 views

Kerberos Double Hop Delegation from IIS to SQL server (using django)

I need to pass the credentials (Integrated Windows Authentication) from a django website on IIS onto a backend SQL server so that it runs under the proper user context. This is how my setup looks so ...
0
votes
0answers
113 views

Django (uwsgi) + nginx hangs on curl requests

I am trying to debug a problem where a request done with curl hangs. The website renders fine if I open it through any web browser. I can't find anything suspicious into the log files as well. I've ...
0
votes
0answers
72 views

pg_dump permissions: what are the permissions Django uses to create table?

I've made a Django project called interro. I've made a PostgreSQL database called interro as well, with a PostgreSQL user called interro. Everything works, my Django project works, and connects. I've ...
2
votes
1answer
394 views

IIS and SQL Server Windows authentication in a django application

I am trying to run a django website which connects to a SQL Server, using IIS with Windows authentication. IIS server and SQL server are on different machines under the same domain i.e., iis_machine....
0
votes
2answers
34 views

Running single web app in server - why not using root?

I have one cloud server to host only one website (django + gunicorn + nginx), postgres database will be deployed to another cloud server. In this case should I create special user for my website? ...
1
vote
2answers
2k views

uWSGI and NGINX 502: upstream prematurely closed connection

I have a Kubernetes cluster which is running Django application within docker container served by uWSGI. The ingress controller is ingress-nginx (this one: https://github.com/kubernetes/ingress-nginx)....
0
votes
0answers
170 views

Apache test page, instead of Django app showing up after server is started

I have an app on EC2 that I start up by ssh'ing into the VM, activating the env and then running manage.py runserver. The Django app starts without any errors on 127.0.0.1:8000. The server files ...
0
votes
0answers
9 views

Django nginx+uwsgi *1 connect() to unix:/run/uwsgi/firstsitecd.sock failed (111: Connection refused) while connecting to upstream [duplicate]

I'm trying to deploy a Django application on Ubuntu 16.4. I referred a document to deploy my application and here this is the URL which I have followed server-django-nginx-with-uwsgi. Everything went ...
0
votes
1answer
214 views

Django deployment with gunicorn socket set up with systemd, gunicorn not honoring gunicorn.conf file settings on Debian 9.4

I followed the systemd deployment instructions here at http://docs.gunicorn.org/en/stable/deploy.html /etc/systemd/system/gunicorn3.service: [Unit] Description=gunicorn3 daemon Requires=gunicorn3....
0
votes
0answers
55 views

TypeError: SSLError(CertificateError(“hostname 'abc.com' doesn't match 'def.com'”,)

currently I am using a django backend which makes another post request to a expressjs backend. I have tested in development server and local machine, worked the request was made perfectly. So I push ...
0
votes
0answers
583 views

Connection refused by Unix socket file

Having some trouble linking up Django + uWSGI + NGINX If I run the Django development server, the page works perfectly. If I run with: uwsgi --http 0.0.0.0:8134 --wsgi-file /test/test_project/wsgi....
0
votes
0answers
45 views

Django cannot find libmysqlclient after upgrade MySQL from 5.1 to 5.5

I have a Server with Debian 6 squeeze. I've made some upgrade to Debian 7 wheezy. MySQL is upgraded from 5.1 to 5.5. Now I have an application developed with Django, and it got me an error, cannot ...
1
vote
0answers
21 views

Resetting and Reconfiguring AWS EB After Large Backend Changes

I had a Python 2.7 Django project I was running as an Elastic Beanstalk Application, which also utilized a S3 bucket for numerous resources. I ran into compatibility issues that necessitated switching ...
0
votes
0answers
325 views

Nginx 404 error with gunicorn on django project

I am trying to follow the https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 guide This is the nginx in /etc/nginx/sites-enabled ...
0
votes
0answers
197 views

nginx - gunicorn - supervisor 502 timeout

I have django app with nginx + gunicorn. Both of them are being started by supervisor. One of requests takes so long (about 14 minutes) but after ten minutes gunicorn workers disappears and I got ...
0
votes
1answer
288 views

Apache: LocationMatch or ProxyMatch doesn't work with RegEx

I want to redirect requests for a exact specific location to proxy server but both solutions doesn't work: <VirtualHost *:80> ServerName exmaple.com <LocationMatch "^/test01$"> ...
0
votes
0answers
782 views

Apache is not serving static files from correct directory

I am actually not sure if the title of the topic is actually the source of my issue but there are serious indications for this. I am not an expert in application servers such as apache so any help is ...
0
votes
0answers
29 views

Is it all right to see thousands of “Python has shoutdown” in apache log?

As we can see in the picture, thounds of initial&delete info appeared in logs. I don't know what a good Django web site should be, but keep fork&delete seems abnormal and waste resources.