from django conf urls defaults import from django conf import settings

1
2
3
4
5
6
7
8
from django.conf.urls.defaults import *
from django.conf import settings
urlpatterns = patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^/$', 'project2.blogs.views.render_blogs'),
)