We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e39d756 commit 31cf6c7Copy full SHA for 31cf6c7
1 file changed
linuxiston/urls.py
@@ -16,4 +16,7 @@
16
]
17
18
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
19
-urlpatterns += static(settings.STATIC_URL, document_root=settings.STATICFILES_DIRS)
+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