What the difference of django 1.4 runserver with mod_wsgi?

399 views
Skip to first unread message

Raitucarp

unread,
Jun 9, 2012, 11:18:17 AM6/9/12
to Django users
So, I was confused with manage.py runserver. Is it the same as
mod_wsgi? Can I use daemon for wsgi with runserver, or I should
install mod_wsgi?

Hendrik Speidel

unread,
Jun 9, 2012, 3:49:46 PM6/9/12
to django...@googlegroups.com
Hi,

manage.py runserver is an embedded webserver for development and debugging purposes only.
Do not use it in production!
Use mod_wsgi, uwsgi, gunicorn or sth. for production.

See: https://docs.djangoproject.com/en/dev/howto/deployment/

hendrik

Masklinn

unread,
Jun 9, 2012, 3:58:39 PM6/9/12
to django...@googlegroups.com
On 2012-06-09, at 17:18 , Raitucarp wrote:
> So, I was confused with manage.py runserver. Is it the same as
> mod_wsgi?

No, they have no relations

> Can I use daemon for wsgi with runserver, or I should
> install mod_wsgi?

You have to install mod_wsgi (or use some other HTTP server than Apache,
there are a number of options). Django's runserver is based on
wsgiref.simpler_server[0] which provides a very simple server for
testing and development, it is *not* suitable for production.

[0] http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server

Raitucarp

unread,
Jun 9, 2012, 4:09:59 PM6/9/12
to Django users
Thanks guys. It is clear now
Reply all
Reply to author
Forward
0 new messages