Sfoglia il codice sorgente

Routing Userguide: Fixes typo, CELERY_ROUTES routers must be instances, not classes.

Ask Solem 14 anni fa
parent
commit
1b53ff7d51
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/userguide/routing.rst

+ 1 - 1
docs/userguide/routing.rst

@@ -537,7 +537,7 @@ that queue in :setting:`CELERY_QUEUES`::
 You install router classes by adding them to the :setting:`CELERY_ROUTES`
 setting::
 
-    CELERY_ROUTES = (MyRouter, )
+    CELERY_ROUTES = (MyRouter(), )
 
 Router classes can also be added by name::