问题描述
Python3.5 + Django2.2 天天生鲜项目在注册基本逻辑一节中运行($ python3 manage.py runserver
)时出现如下报错:
(venv) fang@ubuntu:~/dailyfresh$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/fang/dailyfresh/venv/lib/python3.5/site-packages/django/urls/resolvers.py", line 581, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/fang/dailyfresh/venv/lib/python3.5/site-packages/django/utils/autoreload.py", line 54, in wr