django - 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?
解决方案
You can create new app as , python manage.py startapp newapp
command, and in the settings.py module, add newapp
as installed app
推荐阅读
- javascript - 如何在已安装的 PWA 应用程序上推送应用程序更新?
- c++ - 是否可以在 Visual Studio 上设置选项以保持不同多线程设置之间的确定性浮点结果?
- javascript - 我如何以 PDF 格式下载谷歌数据工作室报告
- java - 正确等待使用 Java 等待给定的数据库值?
- google-cloud-logging - 跳转到 Stackdriver 日志查看器中的搜索文本
- python - 使用带有 --debug 参数的 Pyinstaller 时出现的问题
- css - 如何修复 HTML 样式覆盖 CSS?
- javascript - Openlayers geometry shapes not zooming when map is zoomed
- c# - Convert.ToBase64String 给出空字符串
- sql - SQL:我需要一列根据其他列的值自动更新其值