Skip to content

Commit

Permalink
Merge pull request #22 from cmu-delphi/SD-30-Leaving-MAIN_PAGE-unse…
Browse files Browse the repository at this point in the history
…t-causes-errors

SD-30 Leaving `MAIN_PAGE` unset causes errors
  • Loading branch information
korlaxxalrok authored Aug 31, 2023
2 parents d8d9366 + 884c233 commit 671682b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signal_documentation/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
urlpatterns: list[URLResolver] = [
path('admin/', admin.site.urls),
path('__debug__/', include('debug_toolbar.urls')),
path(f'{settings.MAIN_PAGE}/', include('signals.urls')),
path(f'{settings.MAIN_PAGE}/' if settings.MAIN_PAGE else '', include('signals.urls')),
]

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

0 comments on commit 671682b

Please sign in to comment.