【问题标题】:django.core.management not found on heroku push在heroku push上找不到django.core.management
【发布时间】:2012-03-08 06:32:11
【问题描述】:

我在将我的 django 应用程序部署到 heroku 时遇到了这个问题,它说

2012-03-08T06:26:47+00:00 heroku[web.1]: Starting process with command `python platformsite/manage.py runserver`
2012-03-08T06:26:47+00:00 app[web.1]: Traceback (most recent call last):
2012-03-08T06:26:47+00:00 app[web.1]:   File "platformsite/manage.py", line 10, in <module>
2012-03-08T06:26:47+00:00 app[web.1]:     from django.core.management import execute_manager
2012-03-08T06:26:47+00:00 app[web.1]: ImportError: No module named django.core.management
2012-03-08T06:26:48+00:00 heroku[web.1]: Process exited with status 1
2012-03-08T06:26:49+00:00 heroku[web.1]: State changed from starting to crashed
2012-03-08T06:27:32+00:00 heroku[router]: Error H10 (App crashed) -> GET growing-mountain-9962.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-03-08T06:27:33+00:00 heroku[router]: Error H10 (App crashed) -> GET growing-mountain-9962.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

我的 requirements.txt 文件看起来像这样

py-bcrypt==0.2
ipython==0.12
Flask==0.8
django-debug-toolbar==0.9.4
MySQL-python==1.2.3
PIL==1.1.7
South==0.7.3
django-uni-form==0.9.0
django-grappelli
decorator
pytz
babel
django-pagination
bleach
mock

并且推送到heroku master 成功

如何让 django.core.management 在 heroku 上工作?

【问题讨论】:

  • 需求中缺少 django。

标签: django heroku


【解决方案1】:

发现我没有在heroku服务器上安装django。

【讨论】:

    猜你喜欢
    • 2021-12-10
    • 2013-01-19
    • 1970-01-01
    • 1970-01-01
    • 2013-08-30
    • 2012-06-03
    • 2019-11-15
    • 2015-05-09
    • 2023-01-31
    相关资源
    最近更新 更多