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

4
votes
2answers
317 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
237 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
21 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
177 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: ...
0
votes
1answer
389 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
55 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 ...
0
votes
1answer
245 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 / { ...
0
votes
1answer
225 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
1answer
566 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
0
votes
1answer
417 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 ...
0
votes
1answer
247 views

How to get apache to use python 2 with mod_wsgi?

I have an Arch Linux server that used to use Python 2.7.3 just fine with Apache and mod_wsgi-3.4-2. I have both Python 2.7.3 and 3.3.0 installed on the server, and both executables are located in ...
0
votes
1answer
221 views

Serving Django staticfiles via Nginx 404

I host my Djangoproject on Nginx with uwsgi. staticfiles need to be served separately by Nginx server { listen 80; server_name blog.foo.de; location /static { root ...
0
votes
1answer
75 views

In supervisord umask setting results in same permissions for files and folders

I'm using supervisord to handle some gevent based wsgi processes that simply run a django app. When I upload files I want them to have rw permissions for user and group (www-data) and of course I ...
0
votes
1answer
147 views

One server running Django (with Nginx and Apache) and Wordpress Blog

I have nginx listening to port 80 for my primary site foo.com. It proxys to port 8080 which is where the Django app lives server { listen 80; server_name www.foo.com foo.com; access_log ...
0
votes
1answer
310 views

500 Internal Server Error when setting up Apache on Ubuntu+Django

I tried with Apache on ubuntu 9.04 and get the same error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact ...
0
votes
1answer
130 views

Different settings for secure & non-secure versions of Django site using WSGI

I have a Django website where some of the URLs need to be served over HTTPS and some over a normal connection. It's running on Apache and using WSGI. Here's the config: <VirtualHost ...
0
votes
1answer
232 views

Nginx and Gunicorn hanging on GET requests

I'm using Nginx + Gunicorn which is serving my Django project. All GET requests hang for ~1 min. The content seems to be available immediately as I can see it in the Browser inspector but the browser ...
0
votes
1answer
114 views

Apache stops serving request

I am running django with mod_wsgi and every thing works fine most of the time but at times I observe that all of sudden Apache stops serving any requests, monitoring service on server says httpd is ...
0
votes
1answer
598 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
346 views

Deploying django project under sub-URL with Apache/FastCGi

I am trying to deploy a django project under a sub-URL on hostgator hosting. Here is the tutorial I was following: http://support.hostgator.com/articles/django-with-fastcgi My index.fcgi looks like ...
0
votes
1answer
93 views

ngnix on amazon ec2 instance which has RedHat 4.4.4-13?

I have an ec2 instance running on amazon which has AMI(ami-1b814f72).Its running RedHat 4.4.4-13 version. I want to install ngnix and gunicorn on with django. According to ngnix ...
0
votes
1answer
172 views

centos: unable to write to whoosh indexes

got a problem here. In my development server, I ran into a problem when I try to search using django/haystack with the whoosh backend engine. The path to your Whoosh index ...
0
votes
1answer
363 views

Does uwsgi workers share a common memory ? [ With Nginx ]

I have configured my Nginx with Django uwsgi. When the django server starts, it reads a 5MB file from the hard-disk. Now, Without Nginx with Django default server python manage.py runserver => Runs ...
0
votes
1answer
322 views

Django — test server running in background… somewhere

Using Putty on my Vista machine, I logged into my development server (Ubuntu) and fired up the Django Test server. I left my computer for a while (physically) and returned to find the Putty connection ...
0
votes
1answer
359 views

Django returns 502 error when user apps are added

I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin ...
0
votes
1answer
315 views

Django update database entry from view?

Have been trying to build a simple asset tracking script, I have most of it working correctly however I would like to be able to check items back in once they have been returned. I would like to be ...
0
votes
1answer
425 views

Supervisord and gunicorn_django not playing well sometimes

I can issue a command via supervisorctl to shutdown my gunicorn_django process but sometimes it hangs around until I have to eventually kill it with a -9. The log for the process usually has this: ...
0
votes
1answer
298 views

Caching and/or session issue with django application

We're having several issues with users getting logged out and/or not being able to sign in to our Django application. We have a single database, multiple front end servers, and a nginx load balancer ...
0
votes
1answer
356 views

Daemonizing tool for Gunicorn Centos Nginx and Django

I have set up a basic centos server and through that tested certain technologies. Currently I am running django-1.3, Nginx with FastCGI - works like a charm I have noticed that as soon as my latest ...
0
votes
1answer
542 views

When set SESSION_ENGINE to memcached, Django website halts

I have set up memcached in Django using Pylibmc binding: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': ['10.241.1.1:11211', ...
0
votes
1answer
519 views

gunicorn serving django app produces no log on exceptions

I am trying to serve a Django app using gunicorn. In my current setup running on Debian 6 (production) and Ubuntu 11.04 (development), gunicorn (v0.12) is behind nginx and managed by supervisor. The ...
0
votes
1answer
296 views

Problem getting mod_wsgi running with apache

Not had any problems implementing this set up before, got a new server set up at home and wanted to work on some django projects. Im using virtualenv with virtualenvwrapper, mod_wsgi module seems to ...
0
votes
1answer
194 views

Distributing a Python/Django app and handling database replication

We have developed a Python/Django app which we would like to distribute to clients, so they can run it locally (on a VM). We are doing this so they can still use the app if their internet connection ...
0
votes
1answer
166 views

Performance Problems Started - How to Debug (Ubuntu + Django/Python)

I have a VPS running Ubuntu 10.10, with a Django application running on top of it (MySQL database, Redis datastore, apache + mod_wsgi in daemon mode). Over the last few days, we've been experiencing ...
0
votes
1answer
50 views

How to set up Apache server via an FTP account

I have developed a web application in Django and would like to go online i have an FTP access to the hosting server I am a beginner to "setting up a website" i would like to know how to install apache ...
0
votes
1answer
108 views

How can I deploy Django, FCGI or otherwise, to an old SunOS Apache server?

I have a somewhat stodgy Apache server, running under SunOS, and I would like an appropriate way to deploy a Django application based at /shop/ or some other URL. The server seems set up to allow ...
0
votes
1answer
128 views

why can I access this website but other people can't?

The django app at halfcan.org is hosted on an Amazon ec2 micro instance. I can access it from my computer and from my phone on the same wifi. But anyone else gets a long wait and then "problem ...
0
votes
1answer
1k 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 ...
0
votes
1answer
64 views

How to track/find long running processes using Django?

I'm using Cherokee(uwsgi) with Django and my timeouts are ridiculous(according to Cherokee). How can I track down what pages are causing these timeouts?
0
votes
1answer
491 views

Cant start uwsgi in ubuntu 10.10

When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty I'm folowing ...
0
votes
1answer
350 views

Django, modwsgi and apache virtualhosts

I have gotten virtual hosts to work, but somehow this setup of mine is behaving strangely. NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost ServerName x.com ...
0
votes
1answer
272 views

Lighttpd redirect from www.domain.com to domain.com

I need to permanently redirect all www.domain.com to domain.com in Lighttpd. Here's relevant part of my lighttpd.conf: $HTTP["host"] =~ "^www\.domain\.com$" { url.redirect = ( "^/(.*)" ...
0
votes
1answer
175 views

lighttpd not reliable

I have a lighttpd running which serves a django-based webservice. It was running well for some months, but from today on, it returns a 410 sometimes, and sometimes fails silently. To test, I make a ...
0
votes
1answer
97 views

permission errors with python/django

Error can be seen here: http://djaffry.selfip.com:8080/ If i go to the folder /srv/twingle/search and do ls -l I get -rwxrwxrwx 1 root root 65142784 May 26 20:28 words.db I gave it 777 ...
0
votes
1answer
577 views

Protect all XML-RPC calls with HTTP basic auth but one

I set up a Django project for smartphone serving XML-RPC methods over HTTPS and using basic auth. All XML-RPC methods require username and password. I would like to implement a XML-RPC method to ...
0
votes
1answer
61 views

Can a typical shared host serve both Django & RoR simultaneously?

I'm going to be building two independent applications (one on Django, and one on Rails). I was wondering whether it's reasonable to expect a shared host to be able to do both simultaneously. (Like, ...
-1
votes
1answer
99 views

Why can't django-configurations pick up a SECRET_KEY environment variable from a heroku environment?

When trying to deploy a django app to heroku using django-configurations, I keep getting the error: ValueError: Couldn't setup configuration 'config.settings.Production': Secret value 'SECRET_KEY' ...
-1
votes
1answer
56 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
votes
1answer
312 views

How to build Python-2.7 Debian (Two version Python)

I installed Python-2.7.3 on Debian 6. ./configure --enable-shared --prefix=/usr/local/python2.7 make make install Now already installed, how I can access this: shell: python2.7 Thanks.
-1
votes
1answer
137 views

Nginx common configuration that I might have missed

I recently moved from Apache Mod_wsgi to Nginx, and I have seen a major improvement on speed a lowering on memory usage and I am generally very happy with the it. I am not a server expert, so please ...