Skip to content

Commit 884c233

Browse files
committed
The changes made in this commit include:
- Modified `src/signal_documentation/urls.py` to handle the case when `settings.MAIN_PAGE` is empty. - Added a conditional statement to include the `signals.urls` when `settings.MAIN_PAGE` is not empty. - This change ensures that the `signals.urls` is included in the URL patterns only when `settings.MAIN_PAGE` is not empty.
1 parent d8d9366 commit 884c233

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)