在Heroku的Python教程中使用'django_postgrespool'时出错

时间:2015-05-16 02:09:13

标签: python django postgresql heroku heroku-postgres

我正在关注名为 Python - Get Started 的Heroku教程,但它不起作用。我正在使用Windows 7和名为“Heroku”的虚拟环境。以下是我遵循的步骤:

  1. 安装了Python(2.7.9)并创建了 Heroku 虚拟环境(带有 的virtualenv)
  2. 已安装Heroku Toolbelt
  3. 已安装PostgreSQL 9.4.1-3(64位)
  4. 使用cmd.exe
  5. 命令“heroku login”登录
  6. 使用cmd.exe执行以下命令:
  7. git clone git@github.com:heroku/python-getting-started.git 
    cd python-getting-started     
    pip install -r requirements.txt 
    python manage.py migrate
    

    最后一个命令最后给出了以下错误:

    django.core.exceptions.ImproperlyConfigured: 'django_postgrespool' isn't an available database backend.
    Try using 'django.db.backends.XXX', where XXX is one of:
    u'base', u'mysql', u'oracle', u'postgresql_psycopg2', u'sqlite3'
    Error was: DLL load failed: The specified module could not be found.
    

    我遵循风险,正如教程所说,所有软件包版本都是根据requirements.txt安装的。我做了教程所说的一切。为什么会发生这种错误,我该如何解决呢?

    PS:我找到了this simmilar question,但是当我在那里发布时,标记为正确的答案并没有解决我的问题。该解决方案目前无效。

1 个答案:

答案 0 :(得分:0)

我找到this article并且它有所帮助。该问题必须与MacOs和Postgress有关。

相关问题