Skip to content

Commit edfc590

Browse files
committed
config: fix double-loading issues
* When self-referencing config, there is always a chance that we actually modify the original config from the imported module. The ideal way would be to `deepcopy` everything, but that's not great/possible always.
1 parent eccfe93 commit edfc590

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

invenio.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ SECRET_KEY = "CHANGE_ME"
112112
TRUSTED_HOSTS = ["0.0.0.0", "localhost", "127.0.0.1"]
113113

114114
APP_RDM_ROUTES["index"] = ("/", frontpage_view_function)
115-
116115
RDM_COMMUNITIES_ROUTES["community-home"] = (
117-
RDM_COMMUNITIES_ROUTES["community-home"],
116+
"/communities/<pid_value>/",
118117
communities_home,
119118
)
120119

0 commit comments

Comments
 (0)