python - Psycopg missing module in Django -
i have pip installed psycopg2, when seek runserver or syncdb in django project, raises error saying there "no module named _psycopg".
edit: "syncdb" command raises: django.core.exceptions.improperlyconfigured: importerror django.contrib.admin: no module named _psycopg
thanks help
make sure you've enabled psycopg2 , not psycopg in settings.py file:
databases = { 'default': { 'engine': 'django.db.backends.postgresql_psycopg2', and not:
databases = { 'default': { 'engine': 'django.db.backends.postgresql_psycopg', python django pip psycopg2 psycopg
No comments:
Post a Comment