我是一个python/django新手,正在关注这个tutorial on dotcloud。我用git克隆了脚本,并且没有更改任何内容。在我做了一个dotcloud推送之后,我得到了一个404错误,admin not found。
为了寻找答案,我找到了this from dotcloud answers,检查了我的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.我应该怎么做才能解决这个问题?感谢你的帮助--谢谢。
发布于 2011-10-24 01:36:15
教程应用程序没有提供根URL (http://jims-now0pen.dotcloud.com/)的映射;但是,您可以转到http://jims-now0pen.dotcloud.com/admin/查看Django的管理站点。
这在this paragraph的末尾进行了解释
如果我们现在推送我们的应用程序,我们可以转到/admin URL...
https://stackoverflow.com/questions/7865269
复制相似问题