diff options
Diffstat (limited to 'bn_django')
-rw-r--r-- | bn_django/urls.py.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bn_django/urls.py.example b/bn_django/urls.py.example index c175624..dbb5f6f 100644 --- a/bn_django/urls.py.example +++ b/bn_django/urls.py.example @@ -1,3 +1,4 @@ +from django.conf import settings from django.conf.urls.defaults import * from photos.models import Photo from django.contrib.comments.models import Comment @@ -54,3 +55,8 @@ urlpatterns = patterns('', #(r'^media/(?P<path>.*)$', 'django.views.static.serve', # {'document_root': '/home/bnewbold/code/bn-project/media'}), ) + +if settings.DEBUG: + urlpatterns += patterns('', + (r'^static/(?P<path>.*)$', 'django.views.static.serve', + {'document_root': '/path/to/media'}), ) |