Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346134
D7393.id26716.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D7393.id26716.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:45 PM (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217189
Attached To
D7393: Activate save code now feature for development related tools
Event Timeline
Log In to Comment