blob: e701d3ebdae71327aca52c427bd37702b9906ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from django.conf.urls import *
from django.views.generic.base import RedirectView
from . import views
urlpatterns = [
url(r'location/(?P<location>[-\w]+)/(?P<slug>[-\w]+)/$', views.guide_detail),
url(r'location/(?P<location>[-\w]+)/$', views.guide_list_by_location),
url(r'location/$', views.location_list),
url(r'(?P<page>\d+)/$', views.guide_list),
url(r'(?P<slug>[-\w]+)/$', views.guide_detail),
url(r'', RedirectView.as_view(url="/travel-guide/1/")),
]
|