mirror of https://github.com/django/django.git
Added links to FastCGI docs from various places
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b410464a00
commit
cb73fed1ac
14
docs/faq.txt
14
docs/faq.txt
|
@ -301,16 +301,18 @@ PostgreSQL fans, and MySQL_ and `SQLite 3`_ are also supported.
|
||||||
Do I have to use mod_python?
|
Do I have to use mod_python?
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
Not if you just want to play around and develop things on your local computer.
|
Although we recommend mod_python for production use, you don't have to use it,
|
||||||
Django comes with its own Web server, and things should Just Work.
|
thanks to the fact that Django uses an arrangement called WSGI_. Django can
|
||||||
|
talk to any WSGI-enabled server. The most common non-mod_python deployment
|
||||||
|
setup is FastCGI. See `How to use Django with FastCGI`_ for full information.
|
||||||
|
|
||||||
For production use, though, we recommend mod_python. The Django developers have
|
Also, see the `server arrangements wiki page`_ for other deployment strategies.
|
||||||
been running it on mod_python for several years, and it's quite stable.
|
|
||||||
|
|
||||||
However, if you don't want to use mod_python, you can use a different server,
|
If you just want to play around and develop things on your local computer, use
|
||||||
as long as that server has WSGI_ hooks. See the `server arrangements wiki page`_.
|
the development Web server that comes with Django. Things should Just Work.
|
||||||
|
|
||||||
.. _WSGI: http://www.python.org/peps/pep-0333.html
|
.. _WSGI: http://www.python.org/peps/pep-0333.html
|
||||||
|
.. _How to use Django with FastCGI: http://www.djangoproject.com/documentation/fastcgi/
|
||||||
.. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
|
.. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
|
||||||
|
|
||||||
How do I install mod_python on Windows?
|
How do I install mod_python on Windows?
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
How to use Django with FastCGI
|
How to use Django with FastCGI
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
Although the current preferred setup for running Django is Apache_ with
|
Although the `current preferred setup`_ for running Django is Apache_ with
|
||||||
`mod_python`_, many people use shared hosting, on which FastCGI is the only
|
`mod_python`_, many people use shared hosting, on which FastCGI is the only
|
||||||
viable option. In some setups, FastCGI also allows better security -- and,
|
viable option. In some setups, FastCGI also allows better security -- and,
|
||||||
possibly, better performance -- than mod_python.
|
possibly, better performance -- than mod_python.
|
||||||
|
@ -17,6 +17,7 @@ served with no startup time. Unlike mod_python (or `mod_perl`_), a FastCGI
|
||||||
process doesn't run inside the Web server process, but in a separate,
|
process doesn't run inside the Web server process, but in a separate,
|
||||||
persistent process.
|
persistent process.
|
||||||
|
|
||||||
|
.. _current preferred setup: http://www.djangoproject.com/documentation/modpython/
|
||||||
.. _Apache: http://httpd.apache.org/
|
.. _Apache: http://httpd.apache.org/
|
||||||
.. _mod_python: http://www.modpython.org/
|
.. _mod_python: http://www.modpython.org/
|
||||||
.. _mod_perl: http://perl.apache.org/
|
.. _mod_perl: http://perl.apache.org/
|
||||||
|
|
|
@ -10,15 +10,17 @@ Python code into memory when the server starts. Code stays in memory throughout
|
||||||
the life of an Apache process, which leads to significant performance gains over
|
the life of an Apache process, which leads to significant performance gains over
|
||||||
other server arrangements.
|
other server arrangements.
|
||||||
|
|
||||||
Django requires Apache 2.x and mod_python 3.x.
|
Django requires Apache 2.x and mod_python 3.x, and you should use Apache's
|
||||||
|
`prefork MPM`_, as opposed to the `worker MPM`_.
|
||||||
|
|
||||||
We recommend you use Apache's `prefork MPM`_, as opposed to the `worker MPM`_.
|
You may also be interested in `How to use Django with FastCGI`_.
|
||||||
|
|
||||||
.. _Apache: http://httpd.apache.org/
|
.. _Apache: http://httpd.apache.org/
|
||||||
.. _mod_python: http://www.modpython.org/
|
.. _mod_python: http://www.modpython.org/
|
||||||
.. _mod_perl: http://perl.apache.org/
|
.. _mod_perl: http://perl.apache.org/
|
||||||
.. _prefork MPM: http://httpd.apache.org/docs/2.2/mod/prefork.html
|
.. _prefork MPM: http://httpd.apache.org/docs/2.2/mod/prefork.html
|
||||||
.. _worker MPM: http://httpd.apache.org/docs/2.2/mod/worker.html
|
.. _worker MPM: http://httpd.apache.org/docs/2.2/mod/worker.html
|
||||||
|
.. _How to use Django with FastCGI: http://www.djangoproject.com/documentation/fastcgi/
|
||||||
|
|
||||||
Basic configuration
|
Basic configuration
|
||||||
===================
|
===================
|
||||||
|
|
Loading…
Reference in New Issue