Skip to content
Snippets Groups Projects
Verified Commit 683b349b authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Activate save code now feature for development related tools

This will avoid having to flip it on by default all around.

Related to T4040
parent f9376329
No related branches found
No related tags found
1 merge request!1075Activate save code now feature for development related tools
......@@ -127,7 +127,7 @@ DEFAULT_CONFIG = {
"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] = {}
......
......@@ -9,16 +9,9 @@ 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
......
......@@ -81,7 +81,6 @@ swh_web_config.update(
"server_url": "http://localhost:8080/auth/" if _pytest else "",
"realm_name": "SoftwareHeritage",
},
"features": {"add_forge_now": True,},
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment