summaryrefslogtreecommitdiff
path: root/app/guide/urls.py
blob: 52222fd09e0f91302e586a92d1867783fa4e23e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.conf.urls import *
from django.views.generic.base import RedirectView


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'', RedirectView.as_view(url="/travel-guide/1/")),
)