首页 > 解决方案 > How do you link 2 apps within django?

问题描述

Basically I have built the basics of a website.

I am now wanting to implement a blog on the website as another app.

How do I go about linking the URLs, views, models within these apps?

Also, with the templating do I have to insert the blog webpage to the blog app or keep it on the main website app?

标签: djangodjango-modelsdjango-formsdjango-viewsdjango-apps

解决方案


You can create new app as , python manage.py startapp newapp command, and in the settings.py module, add newapp as installed app


推荐阅读