【问题标题】:django on dotcloud tutorial: 404 admin not founddjango on dotcloud 教程:404 admin not found
【发布时间】:2011-10-23 09:05:15
【问题描述】:

我是一名 python/django 新手,关注 tutorial on dotcloud。我 git 克隆了脚本,并没有改变任何东西。点云推送后,出现 404 错误,找不到管理员。

在寻找答案时,我找到了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.

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

【问题讨论】:

    标签: django dotcloud


    【解决方案1】:

    教程应用程序不提供根 URL (http://jims-now0pen.dotcloud.com/) 的 URL 映射;不过,你可以去http://jims-now0pen.dotcloud.com/admin/查看Dj​​ango的管理站点。

    这个在this paragraph末尾有解释:

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

    【讨论】:

      猜你喜欢
      • 2014-10-12
      • 2014-12-29
      • 2013-11-11
      • 1970-01-01
      • 1970-01-01
      • 2020-09-17
      • 2017-07-01
      • 1970-01-01
      • 2021-07-17
      相关资源
      最近更新 更多