raise ImproperlyConfigured(msg.format(name=self.urlconf_name))


昨天裝了一個locustio 0.14.5,依賴的django1.10升級到了django3.0,結果啟動:python3 manage.py runserver

報錯:

django 1.10

url(r'^api/', include('sign.urls',namespace="sign")

raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf 'guest2.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.

解決方式:

django 3.0.4

url(r'^api/', include('sign.urls'))


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM