Djangoのチュートリアルを進めていて、
Using the URLconf defined in adb.urls, Django tried these URL patterns, in this order: admin/ The current path, test, didn't match any of these.
のようなエラーが出た。
原因は、
urls.py
の配置場所であった。
チュートリアルでは、
mysite/
manage.py
mysite/
__init__.py
settings.py
urls.py
asgi.py
wsgi.py
というディレクトリ構造が示されていて、その後に、
In mysite/urls.py, add an …
という指示があるのだが、このmysiteが上記ディレクトリで2か所あるため、誤って上位のmysite配下にurls.pyを生成してしまった。これでは認識されず、エラーの原因であった。