from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^api/data/$', views.get_data, name='api-data'), url(r'^(?P[0-9]+)/haaleta/$', views.h22leta, name='haaleta'), ]