summaryrefslogtreecommitdiff
path: root/app/books/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-01 22:10:21 -0400
committerluxagraf <sng@luxagraf.net>2015-10-01 22:10:21 -0400
commite0de7a6c08bbbd31fae2e7b796457a982cb3e895 (patch)
tree998de97c36aef12098f5545d3dcfd690e600b23b /app/books/urls.py
parent93ac5f4acb8d1249461425c97d46bbf69915112d (diff)
did a lot of work on the books section
Diffstat (limited to 'app/books/urls.py')
-rw-r--r--app/books/urls.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/books/urls.py b/app/books/urls.py
new file mode 100644
index 0000000..003d6d6
--- /dev/null
+++ b/app/books/urls.py
@@ -0,0 +1,9 @@
+from django.conf.urls import *
+from django.views.generic.base import RedirectView
+
+urlpatterns = patterns('',
+ #url(r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', 'blog.views.entry_list_by_area'),
+ url(r'(?P<page>\d+)/$', 'books.views.book_list'),
+ url(r'(?P<slug>[-\w]+)/$', 'books.views.book_detail'),
+ url(r'^$', RedirectView.as_view(url="/books/1/")),
+)