Parcourir la source

Mention use of --settings=settings in Django first steps

Ask Solem il y a 12 ans
Parent
commit
b225918200
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      docs/django/first-steps-with-django.rst

+ 11 - 0
docs/django/first-steps-with-django.rst

@@ -120,6 +120,17 @@ use the help command:
 
     $ python manage.py celery help
 
+.. admonition:: Help, it's crashing!
+
+    If the worker crashes and spews out a lot of output when it starts
+    then you should try specifying the settings manually:
+
+    .. code-block:: bash
+
+        $ python manage.py celery worker --loglevel=info --settings=settings
+
+    This is usually happens when using older Django project layouts.
+
 Calling our task
 ================