Alex Rivera | Logout

Using Django's built in web server in a production environment

Asked 2011-02-01T20:48:47.047
18

I'm going to setup a simple Django app running in a production environment on a Linux box. The app will have very little traffic - less that 100 page loads per day. Is it okay to use the builtin Django webserver for this or should I install Apache and mod_wsgi? If so, what are the reasons for this? Security perhaps?

UPDATE

OK it is clear I shouldn't be using the builtin server. Some of the alternatives to Apache look interesting. Is there one that is more popular/more frequently used with Django perhaps?

Edit
Report

1 Answer

22

DO NOT USE THIS (the builtin Django webserver) SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests.

http://docs.djangoproject.com/en/dev/ref/django-admin/#runserver-port-or-address-port

But you don't have use Apache if you don't want to. You could directly use Spawning, Gunicorn etc.

Cherokee is also easy to setup.

answered 2011-02-01T20:51:18.727

Your Answer