仅协议3支持错误

时间:2018-01-22 21:26:05

标签: python django postgresql psycopg2

我试图在Windows Server 2012上使用PostgreSQL配置Django。

但过了一会儿我得到了这个错误 only protocol 3 supported

我使用的是Postgres 9.6和psycopg2 2.7.3以及Django 1.11和mod_wsgi。

我也试过Postgres 9.5和psycopg2 2.6但是没有用

在settings.py中我有

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mydb',
        'USER': 'postgres',
        'PASSWORD': 'mypassword',
        'HOST': 'localhost',
        'PORT': '5432',
     }
}

我读了这个question以及此question,但未找到任何解决方案。

你知道这个问题的解决方案吗?

0 个答案:

没有答案
相关问题