报错 : Specifying a namespace in include() without providing an app_name ‘django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.

Django2 报错

如果出现这样的报错,需要在当前应用的urls中添加一行代码即可:
Django2 报错

也就是
app_name = ‘当前你应用的名字

相关文章:

  • 2021-04-13
  • 2021-08-15
  • 2021-09-03
  • 2021-11-01
  • 2022-03-09
  • 2021-11-18
  • 2022-02-06
  • 2022-12-23
猜你喜欢
  • 2021-08-21
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-07-03
相关资源
相似解决方案