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( regex=r'(?P<slug>[-\w]+)$', view=views.ExpenseListView.as_view(), name='list_expense' ), url( regex=r'^$', view=views.TripListView.as_view(), name='list_trip' ) ]