from django.conf.urls import * from django.views.generic.base import RedirectView urlpatterns = patterns('', (r'(?P[-\w]+)/(?P\d+)/$', 'blog.views.entry_list_by_area'), (r'(?P\d+)/$', 'blog.views.entry_list'), (r'(?P[-\w]+)/$', RedirectView.as_view(url="/writing/%(slug)s/1/")), (r'', RedirectView.as_view(url="/writing/1/")), )