project/urls.py
changeset 14 290f37228707
parent 12 39f05885c9e7
child 24 bb1f31e9c3ab
equal deleted inserted replaced
13:1de2f4008a5d 14:290f37228707
    16 admin.autodiscover()
    16 admin.autodiscover()
    17 
    17 
    18 # Blog & Admin
    18 # Blog & Admin
    19 urlpatterns = patterns(
    19 urlpatterns = patterns(
    20     '',
    20     '',
    21     url(r'', 
    21     url(r'^$', 
    22         direct_to_template, {"template": "home.html"},
    22         direct_to_template, {"template": "home.html"},
    23         name='home'),
    23         name='home'),
    24     (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    24     (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    25     (r'^comments/', include('django.contrib.comments.urls')),
    25     (r'^comments/', include('django.contrib.comments.urls')),
    26     (r'^admin/(.*)', admin.site.root),
    26     (r'^admin/(.*)', admin.site.root),