mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:29:16 +02:00
See #297: sorted config imports
This commit is contained in:
parent
799386c2b6
commit
ab80dffeea
7 changed files with 14 additions and 19 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue