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

2
votes
3answers
382 views

Logging doesn't work after rsyslog upgrade

I have several different django applications under apache on a Red Hat server. These applications use SysLogHandler for sending log messages to the local rsyslog service. In order to pipe log messages ...
1
vote
2answers
636 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 ...
0
votes
2answers
105 views

Connecting to SQL Server from Python Django

I have a Django site running on a Linux based server. My partner has SQL Server running on a IIS Windows server behind a Cisco router. We are looking for a secure way for the Django site to connect to ...
1
vote
1answer
142 views

nginx is no longer working on ec2 instance

i admittedly ran this: sudo update-rc.d nginx defaults which seemed to wipe out the setup of nginx. Nginx commands like sudo service nginx start, etc no longer return anything when executed. ...
1
vote
0answers
72 views

How do I allow www-data to (negatively) change the niceness of a process in Linux?

So I'm running a website using django and sometimes I call scripts located on the server by spawning a subprocess in python. When looking at the processes with "top" I see these are called under the ...
-3
votes
1answer
91 views

What are some unnecessary processes in Ubuntu 12.04? [closed]

So, I'm using Ubuntu 12.04 for my AWS instances and when I first start it up and look at the processes there seems to be a lot of things running that I'm not sure are necessarily needed for my ...
0
votes
3answers
493 views

Nginx bad gateway (502) error on django 500 errors (instead of showing django 500 page) with DEBUG = False setting

I have a problem with my current setup... And the issue is, that if i set DEBUG = False in django settings.py file nginx stops showing django tracebacks on 500 errors, but does not show our 500 page ...
0
votes
1answer
57 views

Is it possible to manually specify an alternative Procfile on Heroku?

I have a repository which can be deployed in two modes: one is a front-end web application, while the other is a data manipulating process which runs non-stop, 24x7. The application runs on Django ...
0
votes
0answers
80 views

Issue with Nginx and Gunicorn with POST requests over ~8kb

I have a very peculiar issue with Nginx, Gunicorn and Django. Here's a breakdown of what I'm experiencing: Post requests > ~8K that go through Nginx to Gunicorn to a valid Django URL/view fail. ...
2
votes
1answer
1k views

Supervisor process exits with 'exit status 1; not expected'

I'm trying to run a gunicorn_django process in supervisor but it always exits immediately, giving this error: INFO exited: my_app (exit status 1; not expected) INFO received SIGCLD indicating a ...
0
votes
1answer
272 views

Gunicorn error: “Error opening file for reading: Permission denied”

I'm getting an error when running my Django app with gunicorn: when I make a post request over 7800 bytes I see the following error from gunicorn: "Error opening file for reading: Permission denied". ...
0
votes
2answers
1k views

Nginx + Gunicorn + Django - nginx not allowing static files

Updated Code - this is still not working though. Settings.py STATIC_ROOT = '/home/ubuntu/virtualenv/mysite/homelaunch/static/' STATIC_URL = '/static/' nginx conf :: /etc/nginx/sites-enabled/mysite ...
0
votes
1answer
579 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
22 views

How it's possible to reload a particular user Apache WSGI?

I have multiple WSGI instances running each on it's own user account. I'm trying to give the users to reload their own HTTPD processes only on Python/DJango code update, without impacting the other ...
0
votes
1answer
180 views

nginx django suburl doesn't work

I'm trying to setup django under some suburl, lets say /myproject, with nginx and uwsgi. However, I can't get it working. Whatever I try, seems that uwsgi_modifier1 30; option doesn't work. I always ...
1
vote
2answers
168 views

Unicode characters in nginx fastcgi links

I have a django project hosted over nginx with fastcgi. Django has some urls that user cyrillic characters. But when I try to open page with such link, django tells that it doesn't have such model, ...
0
votes
1answer
227 views

Why is uWSGI not loading the app specified in the nginx configuration?

I have a server serving multiple Django sites using nginx (1.1.19) and uWSGI (0.9.8). uWSGI is running in VirtualHosting mode and loading apps dynamically as documented here: ...
1
vote
2answers
92 views

'mysql' Command not Connecting as used from PATH but Works if Full Path is Used

Not sure how to fix this but here is the description. I can run the command to a Lampstack MySQL installation like this and it works: /opt/lampstack/mysql/bin/mysql -u root -p And my PATH variable ...
0
votes
1answer
102 views

celery tasks from one domain appear on another domain's django admin hosted on the same box

I have a rather funny problem that I didn't manage to find it elsewhere. I have 2 django-celery projects running with redis on 2 different domains, but apparently hosted on the same box. I don't have ...
1
vote
1answer
60 views

Apache Django OOM on server with 4GB RAM

I'm running a production Django site on Ubuntu Linode w/ 4GB RAM. Major processes are Apache2, MongoDB, Memcache, PostgreSQL, Tomcat6 and Redis. Apache OOMs about 10 times a day. I've tweaked values ...
1
vote
1answer
174 views

uWSGI Returning Empty Response

I have a Django site which I am trying to server via uWSGI. I have started the server like so: uwsgi --emperor . Ctrl+Z bg 1 (There are two .ini files which point to the test version and production ...
0
votes
2answers
82 views

uwsgi emperor mode - Warning message

I use uwsgi running in the emperor mode to serve multiple Django Applications on one server. Therefore for every project I have a own config file like this one: <uwsgi> ...
1
vote
0answers
91 views

“Error importing middleware” while upgrading to Django 1.5 from Django 1.4?

I have a shared hosting account with Python 2.7.2 installed. I have done a local installation of Django 1.4 (python setup.py install --user) and everything was working fine. I decided to upgrade to ...
1
vote
0answers
271 views

Python Threads and uWSGI Harakiri

I have a webapp that is using an API built on nginx, uWSGI, and Django. Recently I have been seeing a lot of harakiris on a particular API call which does some quick processing and then spawns a few ...
1
vote
2answers
544 views

https www not able to redirect to non-www https nginx

I can't seem to redirect my https://www to https:// How it is currently the site thinks that www. is a completely separate site. I want to redirect properly, but when I add configuration on what I ...
0
votes
2answers
125 views

ubuntu linode server 404 error with django mod_wsgi [closed]

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually ...
-2
votes
1answer
91 views

idle proccesses and high memory bad? uwsgi/django

I have a VPS with 256MB of ram. I'm running nginx, uwsgi and postgresql on Ubuntu 12.04 for a soon to be Django site. About 200MB of ram are being used despite the website not being active, the uwsgi ...
0
votes
1answer
633 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
60 views

Performance issues with windows server, sql-server and apache

I am running into some performance issues on my server, which runs Windows server 2008, SQL Server 2008 R2, and apache. This is a purely internal website, and is accessed by a total of about 6 ...
2
votes
1answer
65 views

Apache2 server using a lot of CPU

The output of top Tasks: 68 total, 1 running, 67 sleeping, 0 stopped, 0 zombie Cpu(s): 96.0%us, 3.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 3840492k total, 1175776k ...
0
votes
0answers
285 views

Nginx, Django, Gunicorn work slow in specific situations

My problem is that when I log on to my application via facebook, or send an email it takes a very long time ( about 1-2 minutes ). In other situations site is reacting almost instantly. My application ...
0
votes
2answers
417 views

File uploads and client_max_body_size in nginx + gunicorn + django

I need to configure nginx + gunicorn to be able to upload files greater than the default max size in both servers. My nginx .conf file looks like this: server { # ... location / { ...
1
vote
2answers
144 views

django + apache2, each user takes up a lot of memory

I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: ...
-1
votes
3answers
7k views

How to clear nginx cache [closed]

My nginx config here: http://p.ngx.cc/0c This link http://aa-tour.ru/static/system/css/style.css show me old cached version of file, how to remove it and clear cache? This is correct (new) version of ...
0
votes
4answers
336 views

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is ...
0
votes
1answer
106 views

Installing WSGI on EC2 micro instance

How do I install Apache with WSGI on my Amazon AMI EC2 micro instance? I tried sudo yum install httpd libapache2-mod-wsgi but I got this error message no package libapache2-mod-wsgi available ...
0
votes
2answers
2k views

ubuntu + nginx + uwsgi + django No Python application found

I am trying to setup my server with a nginx to uwsgi to django stack, but I am having problems with the uwsgi part. When I run uwsgi and pass in all the parameters on the command line, it works ...
0
votes
1answer
384 views

Django mutli-threading on apache/mod_wsgi/windows

I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only ...
0
votes
2answers
364 views

Preserve http headers from Django using NGINX and Gunicorn

I'm setting some non-caching headers in a Django middleware to control caching of xhr request. Mostly because IE is caching ajax request heavily. class NeverCacheXhrMiddleware(object): """ ...
-1
votes
1answer
524 views

Python, “you don't have permission to access that port” [closed]

I'm setting up my first Django project on a server When I do python manage.py runserver .0.0.0.0:80, it tells me You don't have permission to access that port. When I do python manage.py runserver ...
2
votes
1answer
114 views

Unable to serve Django static files

I am trying to serve Django admin static files but nothing seems to be working below is my nginx configuration : upstream django { server 127.0.0.1:8000; } server { listen 4321; ...
0
votes
0answers
64 views

Cache layer for Heroku-hosted mobile-server app

I am developing a mobile app, backed by a server hosted on Heroku. There will be a continual polling of the server by the client, to check for changes in state. To avoid hammering my Heroku servers I ...
0
votes
0answers
86 views

Apache suddenly starts redirecting to bogus URL

I've been having a strange problem on a server I'm administering. After a certain amount time, without doing any change on the server, it suddenly starts redirecting to the main url plus some url info ...
1
vote
1answer
356 views

Django - cant connect to local MySQL Server through socket

I’m using Django Bitnami Stack on Amazon EC2. I’m attempting to sync the database for the initial setup but I am having problems. When running the following command I receive an error message: ...
3
votes
2answers
2k views

Nginx 502 bad gateway runing django in uwsgi

I tryed to restart a project in production and it stoped working. This is a django==1.5.1 and django-cms==2.4.1 project. I restarted because I've updated the project from django==1.4.1 to ...
0
votes
1answer
120 views

nginx proxy_cache or Memcached

I currently use nginx's proxy_cache for file-based caching in front of three Django applications (Apache/mod_wsgi). For some locations/URLs, I disabled proxy_cache and used Memcached (per view) within ...
1
vote
0answers
492 views

upstream sent more data than specified in “Content-Length” header while reading upstream

I have django app (based on Mezzanine). My nginx conf looks like: upstream myhost { server 127.0.0.1:8000; } server { listen 80; server_name www.myhost.ru myhost.ru; ...
0
votes
2answers
246 views

What is the advantage of having ELB infront of your NGINX servers?

I've looked into a lot of back end setups on Amazon Web Services, especially that of Instagram's. On their Instgram Engineering Blog they mentioned how they have an Elastic Load Balancer in front of ...
0
votes
1answer
511 views

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── ...
2
votes
1answer
218 views

How to run multiple websites from one Django project on nginx and uwsgi

How to run two web sites or subdomains of a site from a single Django code base. Each Django app in the project can then power a website on a different domain, but all the apps can still share a ...