Only protocol 3 supported

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 03:57:56

问题


I try to configure Django with PostgreSQL on Windows 10. When I run server usually I get an error

only protocol 3 supported

but sometimes the server starts properly.

I installed 32-bit Postgres 9.6 and psycopg2 2.7.1.

In settings.py I have

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

Do you know any solutions for the problem?

来源:https://stackoverflow.com/questions/44881827/only-protocol-3-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!