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.
Questions tagged [django]
1012 questions
0
votes
0 answers
Error 502: Deploy Django application with Gunicorn and Nginx
I have developed a web application with Django and I am trying to publish it in a virtual machine created with Azure. To do that I'm using the following software stack:
Ubuntu (20.04)
Django (3.0.7)
Virtualenv (20.0.17)
Gunicorn (20.1.0)
Nginx…

El_Merendero
- 111
- 3
0
votes
2 answers
Hosting two different django project in the same droplet with different subdomains (NGINX, Gunicorn, ubuntu)
As the title says I want to host two different django project in the same droplet (NGINX, Gunicorn, ubuntu) with different subdomains. One will be our main site example.com. which is up and running and working perfectly. We want to host the staging…

Ixion Chowdhury
- 3
- 2
0
votes
1 answer
connect() failed (111: Connection refused) when trying to reach 1 of 3 apps
I have two Django apps running on my Debian server with Gunicorn.
One running on port 80(app1), the other on 84(app2). app1 is working fine. But when trying to open app2, I get a 502 Bad Gateway from Nginx. Both their configs are almost identical. I…

Samoht
- 1
0
votes
0 answers
Getting a "403 access denied" after following tutorial
I followed the tutorial located here, Everything seemed to go as the tutorial said it would - except now I'm getting a 403 Forbidden error. I have nginx, gunicorn and django all installed. The nginx just gives me the following error:
2021/11/13…

sololuvr
- 1
- 2
0
votes
1 answer
django.db.utils.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified in OCI
django.db.utils.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
within OCI repeatedly receiving errors connecting database ADW(autonomous database warehouse 19c) to deploy a Django project in oracle cloud…

CADENTIC
- 23
- 7
0
votes
0 answers
Django / Gunicorn with Nginx reverse proxy - Wrong redirect to base path
I have a Django app successfully running with Gunicorn/Uvicorn, under a subpath of my domain (example.com/myapp).
The Nginx vhost looks like this:
server {
server_name example.com;
location /myapp/ {
proxy_pass…

bolino
- 273
- 3
- 15
0
votes
0 answers
Nginx + django +nodejs : Uncaught SyntaxError: Unexpected token '<'
This is first time using nginx and nodejs. I have two apps one is built using django and other is built using nodejs (expressjs +openvidu). I am trying to configure nginx, django app works fine, I am having trouble with nodejs. nginx is not serving…

Raviteja Sutrave
- 1
- 2
0
votes
1 answer
Exception Value: relation "django_session" does not exist
I found a Django project and failed to get it running in Docker container in the following way:
git clone git clone https://github.com/NAL-i5K/django-blast.git
$ cat requirements.txt in this files the below dependencies had to be…

user977828
- 225
- 1
- 6
- 15
0
votes
1 answer
Django caused Unable to connect with Docker
I found a Django project and failed to get it running in Docker container in the following way:
git clone https://github.com/hotdogee/django-blast.git
$ cat requirements.txt
#psycopg2==2.6.0 # if use postgreSQL as DB backend
I have the…

user977828
- 225
- 1
- 6
- 15
0
votes
0 answers
Apache and Django configuration
I implemented a Django project with MySQL backend. It runs well using python manage.py runserver.
Apache seems installed well with no errors. I can access the default apache server. However, I couldn't make the apache web server and Django work…

Cheolsoon Im
- 109
- 4
0
votes
0 answers
Port not opened in azure, how to fix that?
I am running django project on a azure ubuntu 18 machine.
It runs on 8000 port. So I opened the port from security section of azure.
And the firewall is inactive on that machine.
But still, I can't access the 8000 port.
How to fix that?

uday
- 352
- 10
- 30
0
votes
1 answer
Static files with Python, Apache (Proxy) and SSL
It's my first question in the community, i apologize in advance if I write something wrong
I developed an application in Python (Django) and in the quality environment I am using gunicorn to provide the deploy: gunicorn --bind 0.0.0.0:8000…

Fernando Tholl
- 101
- 3
0
votes
0 answers
Coworkers think latest Django 3.1.7 needs a mod_wsgi newer than the 3.4.18 provided by Centos 7.9
My coworkers are asking me why we are using the Centos 7.9 provided apache + mod_wsgi for the sake of Django 3.1.7
VERSUS
hand assembling a custom build of either Centos 7.9's apache or a custom apache, and the latest or a more recent version of…

FormerAtariUser
- 11
- 2
0
votes
1 answer
How to configure nginx proxy_pass to serve http images from https website?
I have django website and remote image storage. I want to proxy for example /images/ from django to server 10.0.0.40/images/.
location /images/ {
proxy_pass http://10.0.0.40/images/;
}
No errors in nginx. But django returns Page not found…

Victoria
- 1
- 1
0
votes
1 answer
Redirects from Nginx reverse-proxyed Django ASGI server going to wrong subdirectory
I'm trying to install Etebase in a subdirectory of my Nginx webserver. (I'm also running a Pi-hole dashboard on this server in a seperate subdirectory.) Etebase is a Django app using ASGI. I'm using Uvicorn as the upstream ASGI webserver.
I've…

dan9er
- 103
- 4