Exception in thread django-main-thread:Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/django/urls/resolvers.py", line 591, in url_patterns iter(patterns)TypeError: 'module' object is not iterable(略)
確認ポイント
ソースファイル名とdoes not appear to have any patterns in it.とが出ているので、該当ソースを見る
原因
「urlpatterns」を「urlpetterns」と打ち間違えていた
対応
エラーメッセージに出ていた該当ファイルのタイプミスを修正
メッセージの全体
$ python3 manage.py runserver 0.0.0.0:8000Watching for file changes with StatReloaderPerforming system checks...Exception in thread django-main-thread:Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/django/urls/resolvers.py", line 591, in url_patterns iter(patterns)TypeError: 'module' object is not iterableThe above exception was the direct cause of the following exception: