diff options
author | luxagraf <sng@luxagraf.net> | 2012-09-22 22:27:04 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-09-22 22:27:04 -0400 |
commit | efb623af0bcb47d510501c282e1326b11343a29c (patch) | |
tree | 3a35fb19f5eba3b219c65277a5fb712cbe9604ac /app/blog/urls.py | |
parent | 0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff) |
site reorg
Diffstat (limited to 'app/blog/urls.py')
-rw-r--r-- | app/blog/urls.py | 15 |
1 files changed, 15 insertions, 0 deletions
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<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/'}), +) |