See #297: sorted config imports

This commit is contained in:
Eliot Berriot 2018-06-10 11:29:24 +02:00
parent 799386c2b6
commit ab80dffeea
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 14 additions and 19 deletions

View file

@ -10,8 +10,10 @@ https://docs.djangoproject.com/en/dev/ref/settings/
"""
from __future__ import absolute_import, unicode_literals
from urllib.parse import urlsplit
import datetime
import os
from urllib.parse import urlparse, urlsplit
import environ
from celery.schedules import crontab
@ -315,7 +317,6 @@ CACHE_DEFAULT = "redis://127.0.0.1:6379/0"
CACHES = {"default": env.cache_url("CACHE_URL", default=CACHE_DEFAULT)}
CACHES["default"]["BACKEND"] = "django_redis.cache.RedisCache"
from urllib.parse import urlparse
cache_url = urlparse(CACHES["default"]["LOCATION"])
CHANNEL_LAYERS = {
@ -351,8 +352,6 @@ CELERYBEAT_SCHEDULE = {
}
}
import datetime
JWT_AUTH = {
"JWT_ALLOW_REFRESH": True,
"JWT_EXPIRATION_DELTA": datetime.timedelta(days=7),