summaryrefslogtreecommitdiff
path: root/app/blog/urls.py
blob: d0a5224d0960f797af51850cbcc98836f8758bf8 (plain)
1
2
3
4
5
6
7
8
9
10
from django.conf.urls import *
from django.views.generic.base import RedirectView


urlpatterns = patterns('',
    (r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', 'blog.views.entry_list_by_area'),
    (r'(?P<page>\d+)/$', 'blog.views.entry_list'),
    (r'(?P<slug>[-\w]+)/$', RedirectView.as_view(url="/writing/%(slug)s/1/")),
    (r'', RedirectView.as_view(url="/writing/1/")),
)