• api app url dispatcher from django.conf.urls import url from . import views
urlpatterns = [ url(r'^helloworld/$', views.helloWorld, name='helloWorld'), url(r'^img/(?P<id>\w+)/$', views.getImgInfo,name='getImgInfo')] api/urls.py webgallery/urls.py from django.conf.urls import include, url
urlpatterns += [url(r'^api/', include(‘api’))]