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/")), ) """ urlpatterns = patterns('', url(r'(?P\d{4})/(?P\d{2})/(?P[-\w]+)$', 'blog.views.entry_detail'), #url(r'(?P\d{4})/(?P\d{2})/$', 'blog.views.date_list', name="blog_by_month"), #url(r'(?P\d{4})/$', 'blog.views.date_list', name="blog_by_year"), (r'(?P[-\w]+)/(?P\d+)/$', 'blog.views.entry_list_by_area'), (r'(?P\d+)/$', 'blog.views.entry_list'), url(r'(?P[-\w]+)/$', RedirectView.as_view(url="/writing/%(slug)s/1/")), #url(r'', RedirectView.as_view(url="/writing/1/")), )