~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to docs/howto/deployment/wsgi/gunicorn.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
Django as just another WSGI application. The second is to use Gunicorn's
14
14
special `integration with Django`_.
15
15
 
16
 
.. _integration with Django: http://gunicorn.org/run.html#django-manage-py_
 
16
.. _integration with Django: http://gunicorn.org/run.html#django-manage-py
17
17
 
18
18
Installing Gunicorn
19
19
===================
48
48
Using Gunicorn's Django integration
49
49
===================================
50
50
 
 
51
.. note::
 
52
 
 
53
    If you are using Django 1.4 or newer, it’s highly recommended to simply run
 
54
    your application with the WSGI interface using the ``gunicorn`` command
 
55
    as described above.
 
56
 
51
57
To use Gunicorn's built-in Django integration, first add ``"gunicorn"`` to
52
58
:setting:`INSTALLED_APPS`. Then run ``python manage.py run_gunicorn``.
53
59
 
58
64
* validates installed models
59
65
 
60
66
* allows an ``--adminmedia`` option for passing in the location of the
61
 
  admin media files, mimicing the behavior of runserver.
 
67
  admin media files.
62
68
 
63
69
See Gunicorn's `deployment documentation`_ for additional tips on starting and
64
70
maintaining the Gunicorn server.