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