project/urls.py
changeset 12 39f05885c9e7
parent 1 fda1c66b25f9
child 14 290f37228707
equal deleted inserted replaced
11:ccd48e1468bd 12:39f05885c9e7
    16 admin.autodiscover()
    16 admin.autodiscover()
    17 
    17 
    18 # Blog & Admin
    18 # Blog & Admin
    19 urlpatterns = patterns(
    19 urlpatterns = patterns(
    20     '',
    20     '',
    21     (r'', include('basic.blog.urls')),
    21     url(r'', 
       
    22         direct_to_template, {"template": "home.html"},
       
    23         name='home'),
    22     (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}),
    23     (r'^comments/', include('django.contrib.comments.urls')),
    25     (r'^comments/', include('django.contrib.comments.urls')),
    24     (r'^admin/(.*)', admin.site.root),
    26     (r'^admin/(.*)', admin.site.root),
    25 )
    27 )
    26 
    28