from django.urls import include, path,re_path from . import views app_name="like" #(?P[a-z0-9]+/)? urlpatterns =[ re_path(r'^[a-z0-9]+/((?P[a-z0-9]+)/)?click-notify$', views.Channel.as_view()), re_path(r'^statistic$', views.Statistic.as_view()), re_path(r'^[a-z0-9]+/doublecheck$', views.DoubleCheck.as_view()) ]