Ticket #8688: static-files.diff
File static-files.diff, 598 bytes (added by , 16 years ago) |
---|
-
docs/howto/static-files.txt
119 119 120 120 if settings.DEBUG: 121 121 urlpatterns += patterns('', 122 (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}),122 (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), 123 123 ) 124 124 125 125 This code is straightforward. It imports the settings and checks the value of