summaryrefslogtreecommitdiff
path: root/apps/guide/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/guide/urls.py')
-rw-r--r--apps/guide/urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/guide/urls.py b/apps/guide/urls.py
new file mode 100644
index 0000000..b15e7ab
--- /dev/null
+++ b/apps/guide/urls.py
@@ -0,0 +1,11 @@
+from django.conf.urls.defaults import *
+from django.views.generic.simple import redirect_to
+
+urlpatterns = patterns('',
+ (r'location/(?P<location>[-\w]+)/(?P<slug>[-\w]+)/$', 'guide.views.guide_detail'),
+ (r'location/(?P<location>[-\w]+)/$', 'guide.views.guide_list_by_location'),
+ (r'location/$', 'guide.views.location_list'),
+ (r'(?P<page>\d+)/$', 'guide.views.guide_list'),
+ (r'(?P<slug>[-\w]+)/$', 'guide.views.guide_detail'),
+ (r'', redirect_to, {'url': '/guide/1/'}),
+)