在“ python manage.py runserver …..”下运行时,我的Django应用在服务器上运行良好,但是在nginx / fastcgi下运行时,得到了404.
这是错误消息:
Page not found (404)
Request Method: GET
Request URL: blah.youtrain.me/admin/ (I removed the http due to StackOverflow constraints for new account)Using the URLconf defined in youtrainme.urls,Django tried these URL patterns,in this order:
^admin/doc/
^admin/
The current URL,didn’t match any of these.
无论我在nginx下进入应用程序的哪个页面,它始终显示相同的错误消息:“当前URL,与任何这些都不匹配.”
在nginx下,如果我只是转到blah.youtrain.me,则上面的请求URL更改为:blah.youtrain.me//< ---注意结尾的斜杠.但是,在runserver下,“请求URL”行中没有结尾斜杠.这可能会提供一些见解? 任何帮助将不胜感激!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。