部署项目时未找到页面错误(tango with Django)

2024-03-29 12:07:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在通过“如何与django探戈”一书学习django。我试图在上部署我的项目pythonanwhere.com,这是建议在探戈与django托管,幸运的是一切顺利好吧。但是当我试图运行我的域时,我看到一个错误“页面未找到”。然后我又试了一次,但这次在我的pythonanwhere帐户上关闭了整个tango_with_django_17项目,当我再次尝试运行它时,还是同样的错误,结果是这样的:

Using the URLconf defined in tango_with_django_project_17.urls,Django  tried these URL patterns, in this order:

^admin/
^rango/
^accounts/register/$ [name='registration_register']
^accounts/
media/(?P<path>.*)

The current URL, , didn't match any of these.

。。我不知道问题出在哪里。这是我的网址.py文件

^{pr2}$

有人能帮我吗?在


Tags: 项目djangoincomregisterurl部署错误