Ver Fonte

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

Ask Solem há 12 anos atrás
pai
commit
b225918200
1 ficheiros alterados com 11 adições e 0 exclusões
  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
     $ 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
 Calling our task
 ================
 ================