add celery stuff

This commit is contained in:
2017-02-06 18:50:10 +01:00
parent 567d6007fe
commit 288abf1ad0
4 changed files with 46 additions and 0 deletions

View File

@@ -138,6 +138,15 @@ LOGOUT_URL = 'logout'
LOGIN_REDIRECT_URL = 'carom_index'
LOGOUT_REDIRECT_URL = 'carom_index'
# CELERY STUFF
BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Europe/Berlin'
STATIC_ROOT = "/srv/carom/carom-server/static/"
try: