From 637d71d2c3a7c1c65a931e1eb094052a095cdf05 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Mon, 5 Jan 2009 04:07:10 +0000 Subject: have at it --- apps/blog/urls.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/blog/urls.py (limited to 'apps/blog/urls.py') diff --git a/apps/blog/urls.py b/apps/blog/urls.py new file mode 100644 index 0000000..57a3e7a --- /dev/null +++ b/apps/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