Browse Source

Daemonization cookbook: Need to export DJANGO_SETTINGS_MODULE in /etc/default/celeryd.

Thanks to matclayton
Ask Solem 14 years ago
parent
commit
fbe14ea801
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/cookbook/daemonizing.rst

+ 3 - 3
docs/cookbook/daemonizing.rst

@@ -53,12 +53,12 @@ This is an example configuration for those using ``django-celery``::
     # Where the Django project is.
     CELERYD_CHDIR="/opt/Project/"
 
-    # Name of the projects settings module.
-    DJANGO_SETTINGS_MODULE="settings"
-
     # Path to celeryd
     CELERYD="/opt/Project/manage.py celeryd"
 
+    # Name of the projects settings module.
+    export DJANGO_SETTINGS_MODULE="settings"
+
 Available options
 ~~~~~~~~~~~~~~~~~~