出现问题:

$ python manage.py runserver

启动项目报错时候

raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf 's9luffycity.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is
probably caused by a circular import.

 

原因:

settings中的s9luffycity.url循环调用???

django.core.exceptions.ImproperlyConfigured: The included URLconf 's9luffycity.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused

 

 

 

解决办法:

重新安装django

$ pip install django==2.2

相关文章:

  • 2021-05-14
  • 2021-08-02
  • 2021-11-14
  • 2021-09-09
  • 2021-12-17
  • 2022-01-27
  • 2021-04-10
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2021-12-06
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案