python - django问题求助
高洛峰
高洛峰 2017-04-18 09:14:45
0
1
236

我在这里放了一个myapp3



这个helloWorld是我的django project 我在这个project 里面的myapp3里改的 views 我没有改上图里面的views为什么我浏览的时候会生效啊?

这样为什么会生效啊 页面能显示内容啊?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Ty80

Because your project contains app, then you can see that the urls.py in the project should include the urls.py in your myapp3 through include
, and the urls.py in your myapp3 points the access request to Views in myapp3.

The path is as follows:
project.urls->myapp3.urls->myapp3.views

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template