Explorar o código

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

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
b15970976a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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