Ver Fonte

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

Ask Solem há 11 anos atrás
pai
commit
841925a401
1 ficheiros alterados com 1 adições e 1 exclusões
  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))