dotcloud 上的 django 教程:404 管理员未找到
我是一个 python/django 新手,正在学习这个 dotcloud 教程。我 git 克隆了脚本,没有改变任何东西。在我执行 dotcloud 推送后,出现 404 错误,找不到管理员。
在寻找答案时,我发现了这个来自dotcloud的答案,检查了我的wsgi。 py 并发现与我从教程中克隆的内容没有什么不同。我还做了一个 dotcloud logs -b mysite 并没有发现任何问题。
我也跑了,
dotcloud run mysite python current/path_to/manage.py syncdb
但我仍然得到
Page not found (404)
Request Method: GET
Request URL: http://jims-now0pen.dotcloud.com/
Using the URLconf defined in hellodjango.urls, Django tried these URL patterns, in this order:
^admin/
The current URL, , didn't match any of these.
我应该做什么来解决这个问题?我感谢你的帮助——谢谢。
I am a python/django newbie following along this tutorial on dotcloud. I git cloned the scripts, and did not change anything. After I do a dotcloud push, I get a 404 error, admin not found.
Looking for answers, I found this from dotcloud answers, checked my wsgi.py and found nothing different from what I cloned from the tutorial. I also did a dotcloud logs -b mysite and found nothing wrong.
I also ran a
dotcloud run mysite python current/path_to/manage.py syncdb
and I still get
Page not found (404)
Request Method: GET
Request URL: http://jims-now0pen.dotcloud.com/
Using the URLconf defined in hellodjango.urls, Django tried these URL patterns, in this order:
^admin/
The current URL, , didn't match any of these.
What should I do to fix this? I appreciate your help --thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
教程应用程序不提供根 URL (http://jims-now0pen.dotcloud.com/) 的 URL 映射;但是,您可以访问 http://jims-now0pen.dotcloud.com/admin/查看 Django 的管理站点。
本段末尾对此进行了解释:
The tutorial application does not provide an URL mapping for the root URL (http://jims-now0pen.dotcloud.com/); however, you can go to http://jims-now0pen.dotcloud.com/admin/ to see Django's admin site.
This is explained at the end of this paragraph: