2013-02-14 125 views
0

嗨伙计,所以我跟着GUID来部署Django的在Heroku这里部署的Django到Heroku的

https://devcenter.heroku.com/articles/django

,但我的服务器保持与这个错误有什么想法或方向是极大的赞赏崩溃在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 

回答

0

发现该文件的日期是这个问题,使下面的东西它基于不会工作这

https://github.com/heroku/heroku-buildpack-python/issues/45

我原本会的工作,但我加入了太多大括号

所以不是

DATABASES = { 'default': {dj_database_url.config()}} 

使用仍然不会工作

DATABASES = { 'default': dj_database_url.config()} 
1

docs建议为数据库格式应该是

DATABASES['default'] = dj_database_url.config()

DATABASES['default'] = {dj_database_url.config()}

+0

感谢但它把我放在正确的轨道上:) – exHash 2013-02-14 00:53:23