Skip to main content

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
0 answers
28 views

NGINX | Django | Static & Media files not being served correctly in subdomain pages

Is there any particular valid reason as to why either Django or NGINX refuses to serve both my media & my static files in the wat that I have told it to? These are served correctly normally, ...
JoJoJohan's user avatar
0 votes
0 answers
67 views

My NGINX-powered website is returning the closed connection message for no apparent reason

So I have just configured a Linux server. Is there any valid reason as to why I'm seeing the message: It looks like example.com closed the connection #nginx.conf user root; worker_processes ...
JoJoJohan's user avatar
0 votes
1 answer
34 views

How to setup "double reverse proxy" involving traefik, nginx and Django (GUnicorn)?

This is currently my setup: publicly available private network __________________________ ______________________________ | Traefik reverse proxy | <--> | nginx <--&...
user3389669's user avatar
0 votes
0 answers
15 views

Django Application hosting on different servers but uses the same database

I have a django project called django_project and a domain website.com , I want to host the subdomains of this on different server. So , django project Server A website.com django project Server b ...
bleh's user avatar
  • 1
0 votes
0 answers
27 views

I cannot send mail using python on a VPS

I have a running website on a VPS but I am unable to send mail. If I look in the supervisor logs I see the following error: Traceback (most recent call last): File "/home/founders/founders/lib/...
SnowCrest Digital's user avatar
0 votes
0 answers
27 views

Why is nginx not serving my static site

I have two applications. One is a Django app and the files for this is located at /home/founders/founders/back The site is running and you can see it on founderslooking.com I have another Vue site ...
SnowCrest Digital's user avatar
0 votes
0 answers
47 views

Invalid HTTP_HOST even after setting nginx default_server block

I have a Django server that has entries like ALLOWED_HOSTS = ['example.domain.com']. In my nginx config, under sites-available, I have a bunch of sites listed, all listening on different servers like ...
lessness's user avatar
0 votes
1 answer
96 views

Exposing two applications on different external ports using nginx - nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) [closed]

I am trying to make two apps be accessible on my LAN server (raspberry pi). lab_app: this one is a very simple app, made with flask from a third party, using a sqlite3 database, which results to be a ...
Tms91's user avatar
  • 101
-1 votes
1 answer
167 views

Mysql Error 1045 Access Denied: Using Password: FALSE

I'm using MySQL v8.0.35 with django and python. A website is used to access the database with both the website and database hosted on AWS. When the website tries to access the database in any way, it ...
Meep's user avatar
  • 1
1 vote
1 answer
390 views

Django + Nginx + Gunicorn - Static files not found

I'm using Django+Gunicorn+Nginx for my web application in a Ubuntu 22.04.4 server. I followed this guide until the end and my web is running in production. However, static files are not working (css, ...
pfrud's user avatar
  • 21
0 votes
0 answers
93 views

Django site is not opening up on Digital Ocean Ubuntu droplet

We have been using this server for an year already as our Django application development server but it stopped launching the site on whatever port we start the application. Digital Ocean hosting ...
Santana's user avatar
  • 101
-1 votes
1 answer
143 views

System slow to respond to request. What to do?

I have an application container behind an Nginx reverse proxy. When I access the application via https, the POST request returns 302 and then the GET returns 200. See monitoring via browser: Request ...
campos's user avatar
  • 115
0 votes
0 answers
101 views

Putting a Django application into production on Ubuntu server with Apache2 and Cloudflare

I have this Django application which works very well, but I do not understand at all, how to put it in production on a Ubuntu 22.04 LTS server using apache2 and to link it in HTTPS, on a domain such ...
Ghost0159's user avatar
0 votes
0 answers
169 views

Django: CONN_MAX_AGE persists connections, with gthread worker class of gunicorn

I am using Django, without MAX_CONN_AGE setting (default = 0), this leads to creation of connection in each request, and connection is not reused in django ORM. This is causing multiple postgres ...
mansi chauhan's user avatar
0 votes
1 answer
476 views

Django uwsgi behind haproxy: http or http-socket?

I've a Django app inside a docket that uses uwsgi. Since we have several Dockers running on different machines we have haproxy as load balancer. My question is: should I use uwsgi with http or http-...
EsseTi's user avatar
  • 257

15 30 50 per page
1
2 3 4 5
70