mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
do not overwrite SESSION_ENGINE if it is already set (#235)
This commit is contained in:
committed by
Raphael Michel
parent
44b6777291
commit
50d82143bc
@@ -122,10 +122,11 @@ if HAS_REDIS:
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
|
||||
SESSION_CACHE_ALIAS = "redis"
|
||||
|
||||
if not SESSION_ENGINE and REAL_CACHE_USED:
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
|
||||
else:
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.db"
|
||||
if not SESSION_ENGINE:
|
||||
if REAL_CACHE_USED:
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
|
||||
else:
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.db"
|
||||
|
||||
HAS_CELERY = config.has_option('celery', 'broker')
|
||||
if HAS_CELERY:
|
||||
|
||||
Reference in New Issue
Block a user