from django.conf.urls import url from .views import empty_view urlpatterns = [ url(r'^$', empty_view, name="named-url5"), url(r'^extra/(?P\w+)/$', empty_view, name="named-url6"), url(r'^(?P\d+)|(?P\d+)/$', empty_view), ]