Selaa lähdekoodia

Add example database settings to the FAQ's celeryconfig.py

Ask Solem 15 vuotta sitten
vanhempi
commit
b15970976a
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      FAQ

+ 5 - 0
FAQ

@@ -276,6 +276,11 @@ configuration using the database backend with MySQL:
 
     # Using the database backend.
     CELERY_BACKEND = "database"
+    DATABASE_ENGINE = "mysql" # see Django docs for a description of these.
+    DATABASE_NAME = "mydb"
+    DATABASE_HOST = "mydb.example.org"
+    DATABASE_USER = "myuser"
+    DATABASE_PASSWORD = "mysecret"
 
     # Number of processes that processes tasks simultaneously.
     CELERYD_CONCURRENCY = 8