Selaa lähdekoodia

Django daemon tut: Should not export DJANGO_SETTINGS_MODULE

Ask Solem 11 vuotta sitten
vanhempi
commit
d314194e01
1 muutettua tiedostoa jossa 4 lisäystä ja 9 poistoa
  1. 4 9
      docs/tutorials/daemonizing.rst

+ 4 - 9
docs/tutorials/daemonizing.rst

@@ -96,15 +96,10 @@ This is an example configuration for a Python project.
 Example Django configuration
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-You should use the same template as above, but make sure the
-``DJANGO_SETTINGS_MODULE`` variable is set (and exported), and that
-``CELERYD_CHDIR`` is set to the projects directory:
-
-.. code-block:: bash
-
-    export DJANGO_SETTINGS_MODULE="settings"
-
-    CELERYD_CHDIR="/opt/MyProject"
+Django users now uses the exact same template as above,
+but make sure that the module that defines your Celery app instance
+also sets a default value for :envvar:`DJANGO_SETTINGS_MODULE`
+as shown in the example Django project in :ref:`django-first-steps`.
 
 .. _generic-initd-celeryd-options: