Explorar el Código

Fixed variable name

orarbel hace 11 años
padre
commit
b700d27b8e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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: