网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  Django框架分布式路由系统中 include()之后报错

Django框架分布式路由系统中 include()之后报错

分类: IT文章 • 2022-07-14 22:29:04

今天在部署Django项目的测试环节中突然抛出了如下错误

Django框架分布式路由系统中  include()之后报错

这是主路由的配置

Django框架分布式路由系统中  include()之后报错

这是main  应用中的路由配置

Django框架分布式路由系统中  include()之后报错

最后发现mai应用中路由系统中的变量写错了,应该为urlpatterns

相关推荐

  • python 之 Django框架(路由系统、include、命名URL和URL反向解析、命名空间模式)
  • Django框架分布式路由系统中 include()之后报错
  • Django的路由系统 是否开启URL访问地址后面不为/跳转至带有/的路径的配置项 urls.py中 views.py中,可以为num指定默认值 At any point, your urlpatterns can “include” other URLconf modules. This essentially “roots” a set of URLs below other ones. For example, here’s an excerpt of the URLconf for the Django website itself. It includes a number of other URLconfs:
  • C++走向远洋——21(项目一,三角形,类)
  • Fiddler 4 界面功能介绍
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号