dotcloud 上的 django 教程:404 管理员未找到

发布于 2024-12-11 07:50:58 字数 818 浏览 5 评论 0原文

我是一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

活雷疯 2024-12-18 07:50:58

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

本段末尾对此进行了解释:

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

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:

If we push our application now, we can go to the /admin URL [...]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文