From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- app/blog/urls.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/blog/urls.py (limited to 'app/blog/urls.py') diff --git a/app/blog/urls.py b/app/blog/urls.py new file mode 100644 index 0000000..57a3e7a --- /dev/null +++ b/app/blog/urls.py @@ -0,0 +1,15 @@ +from django.conf.urls.defaults import * +from django.views.generic.list_detail import object_list +from django.views.generic.simple import redirect_to + +from blog.models import Entry + + + +urlpatterns = patterns('', + + (r'(?P[-\w]+)/(?P\d+)/$', 'blog.views.entry_list_by_area'), + (r'(?P\d+)/$', 'blog.views.entry_list'), + (r'(?P[-\w]+)/$', redirect_to, {'url': '/writing/%(slug)s/1/'}), + (r'', redirect_to, {'url': '/writing/1/'}), +) -- cgit v1.2.3-70-g09d2