0
部署Django應用程序時將其導入YAML
我有一個工作的Django應用程序,但是當我嘗試將它部署在Heroku我得到這個錯誤:如何在Heroku
異常類型:導入錯誤 異常值:
無模塊命名YAML
ImportError at /crunchApp/contact
No module named yaml
Request Method: GET
Request URL: http://desolate-citadel-5832.herokuapp.com/crunchApp/contact
Django Version: 1.4.1
Exception Type: ImportError
Exception Value: No module named yaml
Exception Location: /app/crunchApp/Crunch.py in <module>, line 10
Python Executable: /app/.heroku/venv/bin/python
Python Version: 2.7.2
Python Path:
['/app',
'/app/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg',
'/app/.heroku/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/app',
'/app/.heroku/venv/lib/python27.zip',
'/app/.heroku/venv/lib/python2.7',
'/app/.heroku/venv/lib/python2.7/plat-linux2',
'/app/.heroku/venv/lib/python2.7/lib-tk',
'/app/.heroku/venv/lib/python2.7/lib-old',
'/app/.heroku/venv/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/app/.heroku/venv/lib/python2.7/site-packages']
Server time: Sat, 22 Sep 2012 20:35:34 -0700
我不知道我需要更新,因爲這是它崩潰行只是這樣說:
import yaml
感謝您的幫助!
如何才能使其呈現在正確的路徑中?我相信我必須先安裝它,我是否需要重新安裝它在不同的文件? @jobless_at_bangalore – Santiago