Created
February 16, 2011 08:38
-
-
Save renyi/829045 to your computer and use it in GitHub Desktop.
django settings - 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
# Static media | |
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), | |
(r'^media/admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ADMIN_MEDIA_PREFIX}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment