summaryrefslogtreecommitdiff
path: root/app/locations/urls.py
blob: ff2693b97fa3c6f4ea4a31a25f7ab01c8cb2239a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from django.urls import path, re_path

from . import views

app_name = "locations"

urlpatterns = [
    path(
        r'<str:slug>',
        views.TrackDetailView.as_view(),
        name="track-detail"
    ),
    path(
        r'<str:country>/<str:state>/<str:slug>/',
        views.LocationDetail.as_view(),
        name="location-detail"
    ),
    path(
        r'mapdata/',
        views.MapDataList.as_view(),
        name="mapdata"
    ),
    #re_path(r'data/(?P<id>\d+)/$', views.data_json),
    #path(
    #    r'',
    #    views.MapList.as_view(),
    #    name="maplist"
    #),
    path(
        r'',
        views.TravelsList.as_view(),
        name="travels-list"
    ),
]