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


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/")),
)