[英]deploying django to heroku
Hi Folks so I followed the guid to deploying django on heroku here 嗨,大家好,所以我遵循guid在此处将jango部署到heroku
https://devcenter.heroku.com/articles/django https://devcenter.heroku.com/articles/django
but my server keeps crashing on heroku with this error any thoughts or direction is greatly appreciated. 但是我的服务器不断在heroku上崩溃,并显示此错误,因此不胜感激。
2013-02-12T19:27:40+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site- packages/django/utils/importlib.py", line 35, in import_module
2013-02-12T19:27:40+00:00 app[web.1]: __import__(name)
2013-02-12T19:27:40+00:00 app[web.1]: File "/app/eduudle/settings.py", line 15, in <module>
2013-02-12T19:27:40+00:00 app[web.1]: DATABASES = { 'default': {dj_database_url.config()}}
2013-02-12T19:27:40+00:00 app[web.1]: TypeError: unhashable type: 'dict'
2013-02-12T19:27:41+00:00 heroku[web.1]: Process exited with status 1
2013-02-12T19:27:41+00:00 heroku[web.1]: State changed from starting to crashed
found the issue the document is dated so following what it has wont work based on this 发现了文档过时的问题,因此根据此文档将无法正常工作
https://github.com/heroku/heroku-buildpack-python/issues/45 https://github.com/heroku/heroku-buildpack-python/issues/45
What I had originally would have worked but i added too many curly brackets 本来可以用,但是我添加了太多花括号
So instead of 所以代替
DATABASES = { 'default': {dj_database_url.config()}}
use 采用
DATABASES = { 'default': dj_database_url.config()}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.