Ver código fonte

Fixed variable name

orarbel 11 anos atrás
pai
commit
b700d27b8e
1 arquivos alterados com 2 adições e 2 exclusões
  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: