Skip to content

Commit 31cf6c7

Browse files
committed
url changed
1 parent e39d756 commit 31cf6c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

linuxiston/urls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616
]
1717

1818
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
19-
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATICFILES_DIRS)
19+
if settings.DEBUG:
20+
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATICFILES_DIRS)
21+
else:
22+
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 commit comments

Comments
 (0)