There is no module called "psycopg2"
I installed psycopg2 using pip
C:\Users\username>python -m pip install psycopg2
Adjusted my settings:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # also tried: django.db.backends.postgresql
'NAME': 'name',
'USER': 'user',
'PASSWORD': 'my_password',
'HOST': 'localhost',
'PORT': '5432',
}
}
When I try to start the server:
import psycopg2 as an ImportError database:
No module named "psycopg2"
So, I ran again and got:
python -m pip install psycopg2 The requirement has already been met (use --upgrade to upgrade): psycopg2 in ...
So what have I done wrong? I'm new to Django
It’s possible that after the installation tutorial you installed virtualenv, created some environment (for example env1) and installed django on this environment.