Skip to content

Commit 671682b

Browse files
authored
Merge pull request #22 from cmu-delphi/SD-30-Leaving-MAIN_PAGE-unset-causes-errors
SD-30 Leaving `MAIN_PAGE` unset causes errors
2 parents d8d9366 + 884c233 commit 671682b

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
@@ -38,7 +38,7 @@
3838
urlpatterns: list[URLResolver] = [
3939
path('admin/', admin.site.urls),
4040
path('__debug__/', include('debug_toolbar.urls')),
41-
path(f'{settings.MAIN_PAGE}/', include('signals.urls')),
41+
path(f'{settings.MAIN_PAGE}/' if settings.MAIN_PAGE else '', include('signals.urls')),
4242
]
4343

4444
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # type: ignore

0 commit comments

Comments
 (0)