diff --git a/swh/web/settings/development.py b/swh/web/settings/development.py index 8d152e3e..01ebd648 100644 --- a/swh/web/settings/development.py +++ b/swh/web/settings/development.py @@ -1,19 +1,26 @@ -# Copyright (C) 2017-2019 The Software Heritage developers +# Copyright (C) 2017-2022 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information """ Django development settings for swh-web. """ from django.core.cache import cache +from swh.web.config import get_config + from .common import * # noqa from .common import MIDDLEWARE +swh_web_config = get_config() +swh_web_config.update( + {"features": {"add_forge_now": True,},} +) + MIDDLEWARE += ["swh.web.common.middlewares.HtmlPrettifyMiddleware"] AUTH_PASSWORD_VALIDATORS = [] # disable any pwd validation mechanism cache.clear()