昨天裝了一個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'))
