Kaynağa Gözat

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

Ask Solem 12 yıl önce
ebeveyn
işleme
b225918200
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  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
 ================