call different applications views to a main application view in django -
i have 3 different applications , main application ,where need display 3 application views in main application view.
urlpatterns = [ url(r'^$',views.index, name='index' url(r'^app1/', include('app1.urls')), url(r'^app2/', include('app2.urls')), url(r'^app3/', include('app3.urls')) ]
however there views different applications need displayed in main application url calling.
in main application view :
def index(request): return render_to_response(main template+all 3 applications templates)
Comments
Post a Comment