gergelypolonkai-web-django/blog/urls.py
Gergely Polonkai b8f5f11034 Move blog feed to /blog/atom.xml
This is to comply with non-written standards.
2015-03-12 14:29:37 +01:00

56 lines
1.3 KiB
Python

from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from blog import views
urlpatterns = patterns('',
url(
r'^$',
views.index,
name = 'index'
),
url(
r'^page/(?P<page>\d+)$',
views.indexpage,
name = 'indexpage'
),
url(
r'^tag/(?P<tag>[^/]+)$',
views.taglist,
name = 'taglist'
),
url(
r'^tag/(?P<tag>[^/]+)/page/(?P<page>\d+)$',
views.tagpage,
name = 'tagpage'
),
url(
r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/?$',
views.datelist,
name = 'datelist'
),
url(
r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/page/(?P<page>\d+)$',
views.datepage,
name = 'datepage'
),
url(
r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<slug>[^/]+)$',
views.read,
name = 'read'
),
url(
r'^code-chunk/(?P<language>[^/]+)/(?P<slug>[^/]+)$',
views.codechunk,
name = 'codechunk'
),
url(
r'^atom.xml$',
views.feed,
name = 'feed'
),
url(
r'^feed$',
RedirectView.as_view(pattern_name='blog:feed')
),
)