Page MenuHomeSoftware Heritage

D7393.id26716.diff
No OneTemporary

D7393.id26716.diff

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,},
}
)

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 3:45 PM (2 w, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217189

Event Timeline