Przeglądaj źródła

Merge pull request #1633 from orarbel/patch-1

Fixed variable name
Ask Solem Hoel 11 lat temu
rodzic
commit
5fdf1b1843
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      docs/django/first-steps-with-django.rst

+ 2 - 2
docs/django/first-steps-with-django.rst

@@ -140,12 +140,12 @@ alongside ``manage.py`` that automatically binds to your app, e.g. ``proj/celery
     #!/usr/bin/env python
     import os
 
-    from proj.celery import celery
+    from proj.celery import app
 
 
     if __name__ == '__main__':
         os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.celery')
-        celery.start()
+        app.start()
 
 Then you can use this command directly: