Python 为什么Django正在查看错误的URL文件?

Python 为什么Django正在查看错误的URL文件?,python,django,django-urls,Python,Django,Django Urls,我使用的是Django 2.2版本 在mysettings.py中,我有以下设置: ROOT_URLCONF = 'project12.urls' 当我试图打开一个页面时,我得到以下警告 Using the URLconf defined in project1.urls, Django tried these URL patterns, in this order: admin/ The current path, testnow, didn't match any of these. 如

我使用的是Django 2.2版本

在my
settings.py中,我有以下设置:

ROOT_URLCONF = 'project12.urls'
当我试图打开一个页面时,我得到以下警告

Using the URLconf defined in project1.urls, Django tried these URL patterns, in this order:
admin/
The current path, testnow, didn't match any of these.
如您所见,设置是
project12.url
,但它正在查找
project1.url

我多次更改了
settings.py
,但它仍在查找
project1.url
重新启动服务器应该可以做到这一点

你重新启动django服务器了吗?你是对的。非常感谢。我没有注意。尽管“sudo systemctl restart uwsgi”,我还是多次运行了“sudo systemctl enable uwsgi”。现在重新启动服务并开始工作。酷,然后留下答案