forked from vorushin/vorushin_ru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
34 lines (24 loc) · 881 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from django.conf.urls.defaults import include, patterns, url
from blog.feeds import LatestItems, TaggedItems
from blog.sitemaps import BlogSitemap
feeds = {'entries': LatestItems,
'tag': TaggedItems}
sitemaps = {'blog': BlogSitemap}
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'blog.views.index'),
url(r'^blog/', include('blog.urls')),
# comments
(r'^comments/', include('django.contrib.comments.urls')),
# feeds
(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
{'feed_dict': feeds}),
# sitemaps
(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': sitemaps}),
# very own open id server
(r'^openid/', include('vooid.urls')),
# admin
(r'^admin/', include(admin.site.urls)),
)