Skip to content

Commit

Permalink
Explicitly add static to urlpatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 4, 2025
1 parent fb13d93 commit fc30510
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('labs.urls')),
]

if settings.CLI_DEV:
urlpatterns += static(
settings.STATIC_URL,
document_root=settings.STATIC_ROOT,
)

handler400 = 'labs.views.custom_400'

0 comments on commit fc30510

Please sign in to comment.