File: command.rst

package info (click to toggle)
django-uwsgi 1.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 752 kB
  • sloc: python: 912; makefile: 158
file content (32 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Management Command
==================

runuwsgi
--------

.. code-block:: sh

   python manage.py runuwsgi

Configuration
~~~~~~~~~~~~~

uWSGI is configured with a set of defaults, which can be overridden in
the Django settings by defininge a dictionary named `UWSGI_OPTIONS`.
It can contain any uWSGI options; multi-value options are given as
a list as value.

.. code-block:: python

   UWSGI_OPTIONS = {
       "module": "my.project.wsgi",
       "attach-daemon": ["memcached -p 11311", "celery -A my.project.tasks worker"]
   }

If an option is found the the process environment, it is removed from the
default settings, to ensure that environment variables take precedence.
Settings explicitly set in the Django settings dict are not stripped
in favour of environment variables.

Additionally, all command-line options to `runuwsgi` are passed verbatim
to the forked `uwsgi` command.