diff --git a/swh/web/settings/production.py b/swh/web/settings/production.py --- a/swh/web/settings/production.py +++ b/swh/web/settings/production.py @@ -7,8 +7,15 @@ Django production settings for swh-web. """ +from .common import ( + CACHES, + DEBUG, + MIDDLEWARE, + REST_FRAMEWORK, + WEBPACK_LOADER, + swh_web_config, +) from .common import * # noqa -from .common import CACHES, MIDDLEWARE, REST_FRAMEWORK, WEBPACK_LOADER, swh_web_config MIDDLEWARE += [ "swh.web.common.middlewares.HtmlMinifyMiddleware", @@ -58,7 +65,7 @@ } } -WEBPACK_LOADER["DEFAULT"]["CACHE"] = True +WEBPACK_LOADER["DEFAULT"]["CACHE"] = not DEBUG LOGIN_URL = "/oidc/login/" LOGIN_REDIRECT_URL = "/oidc/profile/"