Permalink
Browse files

Serve media in development.

  • Loading branch information...
1 parent 7e15f65 commit ce1b990e518a6c739aa4e9651aa1766cf54b1585 @ktonon ktonon committed Aug 26, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 mingus/urls.py
View
4 mingus/urls.py
@@ -78,7 +78,9 @@
(r'', include('basic.blog.urls')),
)
-
from django.conf import settings
if settings.DEBUG:
urlpatterns += staticfiles_urlpatterns()
+ urlpatterns += patterns('django.views.static',
+ (r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}),
+ )

0 comments on commit ce1b990

Please sign in to comment.