blob: 003d6d6adcfa3fa3fd9976fbbcc016f3fbfb0010 (
plain)
1
2
3
4
5
6
7
8
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/")),
)
|