diff --git a/swh/web/config.py b/swh/web/config.py --- a/swh/web/config.py +++ b/swh/web/config.py @@ -127,7 +127,7 @@ "staging_server_names": ("list", SWH_WEB_STAGING_SERVER_NAMES), "instance_name": ("str", "archive-test.softwareheritage.org"), "give": ("dict", {"public_key": "", "token": ""}), - "features": ("dict", {"add_forge_now": False}), + "features": ("dict", {"add_forge_now": True}), } swhweb_config: Dict[str, Any] = {} diff --git a/swh/web/settings/development.py b/swh/web/settings/development.py --- a/swh/web/settings/development.py +++ b/swh/web/settings/development.py @@ -9,16 +9,9 @@ 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 diff --git a/swh/web/settings/tests.py b/swh/web/settings/tests.py --- a/swh/web/settings/tests.py +++ b/swh/web/settings/tests.py @@ -81,7 +81,6 @@ "server_url": "http://localhost:8080/auth/" if _pytest else "", "realm_name": "SoftwareHeritage", }, - "features": {"add_forge_now": True,}, } )