from django.conf.urls import url from . import views urlpatterns = [ url('^$', views.index, name='index'), url(r'^okreg/(?P\d+)/$', views.okreg, name='okreg') ]