1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
from django.conf.urls import url from . import views urlpatterns = [ url( r'(?P<slug>[-\w]+)$', views.ExpenseListView.as_view(), name='list_expense' ), url( r'^$', views.TripListView.as_view(), name='list_trip' ) ]