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 ...

learn more… | top users | synonyms

0
votes
1answer
1k views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
1answer
399 views

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo ...
3
votes
1answer
1k views

Graphite not running

I'm currently trying to install graphite 0.9.9 on a gentoo box using these instructions from the graphite wiki. Essentially, it fronts graphite using apache and mod_wsgi. Everything seems to have ...
0
votes
1answer
21 views

Nginx won't start — .sock file not found/no such directory

I'm trying to run my django application using uwsgi and nginx. It's been working for the past month, but today I edited file in the /sites-enabled/ dir and now nginx won't start. Here are the error ...
0
votes
0answers
14 views

Nginx 502 timeout error while using Registration with Django

I am using Django-registration-redux as email app to send registration emails and I am getting error while configuring it with Zoho.com. Following is my code for Nginx datahunt: upstream ...
1
vote
1answer
2k views

Debugging Gunicorn + Nginx + Django

I'm trying to deploy a readthedocs instance on my own server. The recommended way to deploy is using Gunicorn + nginx with postgres. Because there's basically no documentation on how to do this (...
8
votes
2answers
2k views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
0
votes
1answer
2k views

Apache as a reverse proxy not working for gunicorn

My Goal is to let client connect through https connection but apache serve it to my application which is running on same server over http. Here is my minimalistic apache configuration file (for ...
0
votes
1answer
27 views

Configuring django with LDAP

I have configured LDAP successfully with a python application using little more than these statements in db/model.py: from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings....
0
votes
0answers
21 views

502 3 12152 Error after upgrading Django version

After upgrading to Django 1.9 from 1.7, and upgrading a number of other python libraries related to Django and my web service, I get a 502.3 12152 error in IIS logs. Looking that up, the error ...
15
votes
3answers
33k views

How to view connected users to open vpn server?

I'm developing a web site for managing open vpn users with django framework. But I need to now is there any way to extract active users from open vpn? My server is running Ubuntu 12.04.
6
votes
1answer
5k views

Apache/wsgi “Script timed out before returning headers”

I have a custom Django app that's becoming unresponsive roughly every 5,000 requests. In the apache logs, I see see the following: Apr 13 11:45:07 www3 apache2[27590]: **successful view render here** ...
0
votes
1answer
2k views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log /var/log/nginx/myserver.com....
3
votes
3answers
2k views

LDAP authentication with Graphite

I have setup Graphite Web 0.9.9 on CentOS 6.2 x86_64 at EC2 and I'm trying to get LDAP authentication to work against 389 Directory Server. I have configured local_settings.py with: USE_LDAP_AUTH ...
0
votes
1answer
3k views

503 Error: Service Temporarily Unavailable (Mod_wsgi, Apache, Django)

I followed the tutorial to mount a Djando application on Apache here. The Django project was created under its own directory in /opt. Any suggestions or other tutorials I can use? I reviewed few ...
-1
votes
0answers
4 views

Django IntegrityError email is not unique [migrated]

I am working on my Checkout view with regular/guest user but getting hard time to come around the integrity error. Idea is to let guest users register with email only to checkout and I need to set the ...
2
votes
1answer
2k views

Static file permissions with Nginx, Gunicorn and Django

I attempting to setup a Nginx server up with a Gunicorn WSGI server running Django behind.. The setup all seems to runs except i have a permissions issue. I have setup aliases to /media and a /static ...
0
votes
1answer
108 views

Docker how to Django + uwsgi/gunicorn + nginx?

I can't get my head around on what's the "correct" way to deploy a Django project that uses uwsgi/gunicorn (I haven't decide yet what to use, probably uwsgi since it has better performances, ...
1
vote
1answer
1k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
0
votes
1answer
27 views

Deploying django on mod_wsgi

The problem: I get 404 error when trying to reach localhost:80. [root@alarmpi public_html]# tail -n 1 /var/log/httpd/error_log [Sat Jun 04 23:09:50.235251 2016] [wsgi:error] [pid 2323:tid 1973417008]...
0
votes
1answer
3k views

Error while installing with Python “pip”: Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get ...
0
votes
1answer
609 views

Postgresql Error: could not receive data from client: Connection reset by peer

I try this stack: nginx + uwsgi + django + postgresql, the request can reach to views of django, client show 500 server internal fault, I check postgres log, found the error could not receive data ...
-1
votes
0answers
28 views

Django runs with manage.py runserver, but not within mod_wsgi on CentOS7-minimal

I managed to run my django project with manage.py runserver command, but having issue to run it within mod_wsgi. Here is traceback I got in apache error log file: mod_wsgi (pid=9357): Target WSGI ...
0
votes
1answer
113 views

Deploying Django application as Wordpress subpage (at sub url), mod-wsgi

I have a Wordpress blog, let's say that it's address is like yakblog.org and it is a Wordpress blog installed on Ubuntu 12.04 server. Now, I would like to run a Django application as one of the sub ...
0
votes
5answers
1k views

munin-cron Unable to Copy Contents

I recently installed munin on my (Fedora12 based) server. Now, I wanted to get all the graphs in a static directory (The application runs on Django). So, I edited the file /etc/munin/munin.conf by ...
0
votes
0answers
28 views

Django Permission Denied on Socket File

I'm trying to setup Django to run via NGINX on a Centos 7 server, however I seem to be encountering a non-stop barrage or problems. The main one that I am encountering now is that NGINX is giving me a ...
0
votes
0answers
62 views

How can I create a django project as a subfolder inside an existing VirtualHost?

I am trying to set up a django project to use a non-root Domain as I am hoping to share a PHP site's cookies with django. After my first attempt this is what I see when at http://localhost/workflow ...
0
votes
0answers
27 views

Apache filter host headers for Django Application

I have an Apache Webserver for Django. It works fine generally, but I need to filter requests with invalid host headers. I tried: <Directory /> SetEnvIfNoCase Host 5.35.241.123 VALID_HOST ...
0
votes
1answer
44 views

nginx connect to socket failed no file or directory with django and uwsgi

I am trying to deploy a django web app using nginx and uwsgi using this tutorial : Digital Ocean. I followed the tutorial step by step and these are my configuration files: /etc/uwsgi/sites/picknbox....
0
votes
1answer
9 views

PyPi Django installation incomplete

I've encountered an interesting issue, and haven't yet managed to solve it with Google. I'm using virtualenv+python3.5. After a number of ImportErrors, I came to a conclusion that my Django ...
0
votes
1answer
23 views

How can I enable Django to send emails?

I have a Debian server (Linux www 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux), and postfix is installed. It is working at least far enough that if, from the command ...
0
votes
0answers
11 views

DLL Load Fail on Apache x64 Server Running

I am transferring a Django and Mapserver project from a Windows 7 machine to a Windows Server 2012 R2 machine (never worked on server environments). I have a single version of 64-bit python installed ...
0
votes
1answer
25 views

Would I need uWSGI for a application or Nginix will suffice?

According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django ...
-1
votes
1answer
96 views

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not found,...
0
votes
0answers
51 views

point domain at another URL + dynamically generated subdirectory?

I have built a Django-based application that is intended to serve different discrete website from different URL variants. What I would like to be able to do is point various domains at the content ...
0
votes
1answer
94 views

AWS RDS Postgres performance issue

We are using rds(postgres) with instance type as db.m4.2xlarge. Usually most of the time number of connections are 8-10. But on some occasion as the number of connections increases to 100-200. DB ...
0
votes
1answer
16 views

Django uwsgi deploy. Unable to find 'application'

Has a problem when starting uwsgi: unable to find "application" callable in file dashboard/wsgi.py unable to load app 0 (mountpoint='') (callable not found or import error) uwsgi.ini: [uwsgi] ...
0
votes
1answer
40 views

Django admin assets are not avaiable on elastic beanstalk

I created a basic Python Django environment on AWS. My project is generated with django-admin startproject michaelmalura. I added an app with django-admin startapp blog. After i publish my project ...
2
votes
1answer
42 views

Troubleshooting nginx caching for static assets

I have a Django website where users post images for the whole community to see (kind of like 9gag). I use Azure storage to save and serve the images. The webserver is an nginx reverse proxy + ...
0
votes
1answer
124 views

Nginx rewrite certain port to subpath (nginx + uwsgi + django)

My goal is to rewrite everything under http://localhost:8000 to http://localhost/foo I followed every step mentioned in this link, but still couldn't get it work. Here's my settings: urls.py (...
1
vote
0answers
142 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
2
votes
1answer
26 views

Strange 404 URL requests on my site

I recently launched a Django powered site and I have 404 error reporting on. I've been getting some strange URL requests, one every couple of days. /renewPwd.php/ /index.php/ /mobile/ /m/ /...
0
votes
1answer
23 views

Pointing 3 domains to same Django app and using different urls to serve each

So I have three domains and three subdirectories in my django app. lets say my IP is x.x.x.x I want the app to work like this: url_visited_by_the_user content_served_from www.domain1.com/ x.x.x.x/...
1
vote
1answer
92 views

django uwsgi and nginx = 400 bad request

I moved my Django website and pip3 install Django. I use the same uswgi wrapper than on the install of server #1 and it works. On server #2, I get a 400 Bad request. If I stop the uwsgi server, I get ...
0
votes
0answers
47 views

How can I configure a Django website to work with Apache 2.4 VirtualHosts?

I recently started developing Django websites and I want to deploy them on a CentOS VPS with mod_wsgi and Apache. I followed this guide and it works perfectly, but I would like to have more than one ...
1
vote
2answers
2k views

Celery with Upstart - processes are dying unexpectedly

When I'm running Celery with Upstart, after a while, the child processes or the main processes die without any trace. The Upstart script I'm using (/etc/init/celery): description "celery" start on ...
1
vote
2answers
65 views

Django mobile template detection with nginx and varnish

I'm trying to get django-mobile (uses different template namespace depending on device type) when behind varnish and nginx. I thought I had it figured out, but with my current set up, it seems that ...
44
votes
8answers
124k views

Why do I get sqlite error, “unable to open database file”?

Using my Django app, I'm able to read from the database just fine. When the application didn't have permission to access the file, it gave me this error: attempt to write a readonly database ...
1
vote
0answers
49 views

start: Job failed to start UWSGI,

Trying to configure ubuntu+nginx+uwsgi+django upstart script /etc/init/uwsgi.conf description "uWSGI application server in Emperor mode" start on runlevel [2345] stop on runlevel [!2345] setuid ...
2
votes
3answers
122 views

Nginx: 502 Bad Gateway error with (111: Connection refused) to uWSGI socket while running django

I am building an app using an Nginx, uWSGI, Django and Postgresql stack. The app uses a Unix socket between Nginx and uWSGI. The file permissions on the socket is 775. But I still get this permission ...