Stack Exchange Network

Stack Exchange network consists of 174 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 ...

0
votes
1answer
8 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
11 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
0answers
17 views

Second Django vHost not working

I'm trying to setup two vHosts on my server for a week now and just can't figure it out. There are my two separate Django projects (stored in one of the users directories) on my Ubuntu 18.04 server ...
0
votes
0answers
20 views

'Main process exited' error Gunicorn systemd file

I follow this article to deploy my Django project. I created gunicorn.service file in /etc/systemd/system/gunicorn.service with this configuration: [Unit] Description=gunicorn daemon After=network....
0
votes
0answers
17 views

Nginx uWSGI and Django giving Bad Gateway

I have a front and back end to my app which is configured to use two IPs on the same machine. The back end proxys non /static requests to uwsgi. I can access uwsgi directly on the port it uses but I ...
0
votes
0answers
38 views

mod_wsgi processes die prematurely in Django app

I'm having a strange problem with mod_wsgi and Django on my local development environment, which is a Macbook Pro running macOS 10.13.6. In the past, I used to use Bitnami MAMP stacks for my Apache ...
0
votes
1answer
91 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
24 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
176 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 ...
0
votes
0answers
9 views

django app deployment without subdomain

I have deployed a django app to the server i have. Let say its ip is 192.168.1.1. So i was able to access the any site there with 192.168.1.1/my_site. I have now deployed the Django App which is a ...
0
votes
0answers
21 views

Add seperate self contained php landing page to server running Django CMS

Completely new to Django and can't seem to find advice regarding this in the docs: In summary, there is a site that is built and managed with Django. I have a self-contained php landing page (with a ...
0
votes
0answers
38 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
46 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
84 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
50 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
50 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
395 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
61 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 ...
0
votes
1answer
62 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
30 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
106 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
85 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
159 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
87 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
54 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
278 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
33 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
1k 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
106 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
0answers
173 views

Nginx cannot access mounted directory to serve static files

We use the classic Django/Nginx/Gunicorn-combination for our website. It was decided a while ago to use a NFS-mounted directory for our media files (using this tutorial), so that's what we're using ...
0
votes
1answer
121 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
53 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
455 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
35 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
18 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
219 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
169 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
216 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
579 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
17 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.
1
vote
0answers
51 views

Django deployed on Elastic Beanstalk intermittently hangs on login

I have a demo django application that is on an Elastic Beanstalk instance that I am showing, and I've had weird intermittent behavior. Sometimes I get stuck at the login menu (the whole site requires ...
0
votes
0answers
102 views

400 error, nginx debug log confusion, Django app

When I go to test.example.com, I get a page that just says Bad Request (400). I'm running a Django app located at /home/django/product_blog. Here are the contents of my nginx file at /etc/nginx/...
0
votes
0answers
123 views

“.sock” does not exist error; connect() error

I'm trying to set up my Mezzanine/Django project on a virtual Ubuntu 14.04 box on Linode, but get a "502 Bad Gateway error" when trying to navigate to my site in my browser. I'm following the ...
1
vote
1answer
182 views

Websocket working within LAN but 502 error from remote client with nginx proxy

I have this really frustrating problem where my server which consists of an nginx reverse proxy and django/channels/daphne websocket host is functioning within the local LAN but from a remote client ...
0
votes
1answer
141 views

Django site running in Apache 2.4.6 on Centos giving 503 server error

Please assist. I have a Django site that i'm trying to configure to run in apache using mod_wsgi. I have setup my virtualhost as follows: <virtualhost *:80> ServerName mysite.com ...
0
votes
0answers
230 views

nginx container in addition to an Ingress with Kubernetes/GKE when deploying Django with gunicorn

New to the whole Kubernetes thing, so bear with me. I've a django wsgi application I am serving with gunicorn and I'm unsure about the appropriate deployment configuration for a production-ready ...
0
votes
0answers
182 views

Nginx error message when closing/rejecting websocket connection

I'm using Nginx to reverse-proxy an api server accepting websocket connections. I do authentication on the server on the connection request. I first accept the connection, then I authenticate the ...
0
votes
0answers
49 views

Receiving syntax error when trying to activate mod_wsgi-express

The server is running CentOS 6.9, Apache 2.xx.x and I am attempting to deploy a Python Django site with mod_wsgi. I thought everything was good, and when I run mod_wsgi-express start-server wsgi.py --...
2
votes
0answers
338 views

Restart Django/uWSGI vassal in uWSGI emperor mode

I am running a django site using uWSGI in emperor mode. I have found that while touching the uwsgi.ini file for a specific application does indeed cause the emperor process to reload that vassal (...