diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py index 9f12fd8..9df688b 100644 --- a/src/agenda_culturel/settings/base.py +++ b/src/agenda_culturel/settings/base.py @@ -14,7 +14,8 @@ APP_ENV = os_getenv("APP_ENV", "dev") DEBUG = os_getenv("DEBUG", "true").lower() in ["True", "true", "1", "yes", "y"] ALLOWED_HOSTS = os_getenv("ALLOWED_HOSTS", "localhost").split(",") - +if DEBUG: + ALLOWED_HOSTS = ALLOWED_HOSTS + ['testserver'] if DEBUG: CSRF_TRUSTED_ORIGINS = os_getenv("CSRF_TRUSTED_ORIGINS", "http://localhost").split( diff --git a/src/agenda_culturel/templatetags/cat_extra.py b/src/agenda_culturel/templatetags/cat_extra.py index b9b3e4c..a73e5ad 100644 --- a/src/agenda_culturel/templatetags/cat_extra.py +++ b/src/agenda_culturel/templatetags/cat_extra.py @@ -123,7 +123,7 @@ def css_categories(): result += "}" result += "" - cache.set('css_categories', result, 3600) # 1 hour + cache.set('css_categories', result, 86400) # 1 day return mark_safe(result)