diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-05 04:07:10 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-05 04:07:10 +0000 |
commit | 637d71d2c3a7c1c65a931e1eb094052a095cdf05 (patch) | |
tree | ca34a2fead939b133143ec7647a9437d52c89075 /apps/blog/urls.py |
have at it
Diffstat (limited to 'apps/blog/urls.py')
-rw-r--r-- | apps/blog/urls.py | 15 |
1 files changed, 15 insertions, 0 deletions
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<slug>[-\w]+)/(?P<page>\d+)/$', 'blog.views.entry_list_by_area'), + (r'(?P<page>\d+)/$', 'blog.views.entry_list'), + (r'(?P<slug>[-\w]+)/$', redirect_to, {'url': '/writing/%(slug)s/1/'}), + (r'', redirect_to, {'url': '/writing/1/'}), +) |