Last active
February 11, 2016 14:39
-
-
Save juanmhidalgo/1150977a9ca05949a94f to your computer and use it in GitHub Desktop.
[django] Serve static files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls.static import static | |
from django.conf import settings | |
if settings.DEBUG: | |
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment