0

我是一个 python/django 新手,在 dotcloud 上遵循本教程。我 git 克隆了脚本,并没有改变任何东西。执行 dotcloud push 后,出现 404 错误,找不到管理员。

寻找答案,我从 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.

我应该怎么做才能解决这个问题?感谢您的帮助-谢谢。

4

1 回答 1

2

教程应用程序不提供根 URL (http://jims-now0pen.dotcloud.com/) 的 URL 映射;但是,您可以访问http://jims-now0pen.dotcloud.com/admin/来查看 Django 的管理站点。

这在本段末尾进行了解释:

如果我们现在推送我们的应用程序,我们可以转到 /admin URL [...]

于 2011-10-23T17:36:15.423 回答