We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 727cea2 + aed54c6 commit 7331838Copy full SHA for 7331838
src/signal_documentation/settings.py
@@ -181,6 +181,9 @@
181
MEDIA_ROOT: str = os.path.join(BASE_DIR, 'media')
182
183
184
+MAIN_PAGE = os.environ.get('MAIN_PAGE', '')
185
+
186
187
# Default primary key field type
188
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
189
src/signal_documentation/urls.py
@@ -38,7 +38,7 @@
38
urlpatterns: list[URLResolver] = [
39
path('admin/', admin.site.urls),
40
path('__debug__/', include('debug_toolbar.urls')),
41
- path('', include('signals.urls')),
+ path(settings.MAIN_PAGE, include('signals.urls')),
42
]
43
44
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # type: ignore
0 commit comments