Skip to content

Commit 158e5e6

Browse files
committed
make admin site available
1 parent 895544b commit 158e5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signal_documentation/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
handler500 = InternalServerErrorView.as_view()
3737

3838
urlpatterns: list[URLResolver] = [
39-
path('admin/', admin.site.urls),
39+
path(f'{settings.MAIN_PAGE}/admin/' if settings.MAIN_PAGE else 'admin/', admin.site.urls),
4040
path('__debug__/', include('debug_toolbar.urls')),
4141
path(f'{settings.MAIN_PAGE}/' if settings.MAIN_PAGE else '', include('signals.urls')),
4242
]

0 commit comments

Comments
 (0)