Source

meblog / urls.py

Diff from to

File urls.py

 #     (r'^admin/', include('django.contrib.admin.urls')),
 
 	# serve static resources
-	(r'^resources/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
+	#(r'^resources/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
 
 	(r'^$', 'posts.views.stream'),
 
     (r'^page/delete/([-\w]+)', 'pages.views.delPage'),
 
     (r'^media/$', 'media.views.listMedia'),
+    (r'^media/serve/([-\w]+)', 'media.views.serve'),
     (r'^media/delete/([-\w]+)', 'media.views.delMedia'),
 	(r'^media/upload/', 'media.views.upload'),
     (r'^media/download/([-\w]+)', 'media.views.download'),