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/")),
)