diff --git a/brightIDfaucet/settings.py b/brightIDfaucet/settings.py index b761fb1..42c03c9 100644 --- a/brightIDfaucet/settings.py +++ b/brightIDfaucet/settings.py @@ -198,24 +198,24 @@ def before_send(event, hint): # } # } -if MEMCACHED_URL and ',' in MEMCACHED_URL: - CACHES = { - "default": { - "BACKEND": "django_bmemcached.memcached.BMemcached", - "LOCATION": MEMCACHED_URL.split(","), - "OPTIONS": { - "username": MEMCACHED_USERNAME, - "password": MEMCACHED_PASSWORD, - }, - } - } -else: - CACHES = { - "default": { - "BACKEND": "django_bmemcached.memcached.BMemcached", - "LOCATION": MEMCACHED_URL - } +# if MEMCACHED_URL and ',' in MEMCACHED_URL: +CACHES = { + "default": { + "BACKEND": "django_bmemcached.memcached.BMemcached", + "LOCATION": MEMCACHED_URL.split(","), + "OPTIONS": { + "username": MEMCACHED_USERNAME, + "password": MEMCACHED_PASSWORD, + }, } +} +# else: +# CACHES = { +# "default": { +# "BACKEND": "django_bmemcached.memcached.BMemcached", +# "LOCATION": MEMCACHED_URL +# } +# } # Password validation # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators