Explorar o código

Django: Fixed typo @celery.task -> @app.task

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
841925a401
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/django/first-steps-with-django.rst

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

@@ -48,7 +48,7 @@ that defines the Celery instance:
     app.config_from_object('django.conf:settings')
     app.autodiscover_tasks(settings.INSTALLED_APPS, related_name='tasks')
 
-    @celery.task(bind=True)
+    @app.task(bind=True)
     def debug_task(self):
         print('Request: {0!r}'.format(self.request))