在heroku推送中找不到django.core.management

时间:2012-03-08 06:32:11

标签: django heroku

我在将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上工作?

1 个答案:

答案 0 :(得分:1)

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