我有三个不同的应用程序和一个主应用程序,我需要在主应用程序视图中显示所有三个应用程序视图。
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'))
]
然而,不同的应用程序中有一些视图需要在主应用程序URL调用中显示。
在主应用程序视图中:
def index(request):
return render_to_response(main template+all three applications templates)