from django.urls import path, re_path from . import views app_name = "deals" urlpatterns = [ path( r'deal', views.GenerateDealCodeView.as_view(), name="code" ), path( r'mydeals', views.MyDealListView.as_view(), name="detail" ), path( r'mydealsnew', views.MyDealLapListView.as_view(), name="detail" ), path( r'', views.DealDetailView.as_view(), name="detail" ), ]