5

What is the use of the psycopg2 PostgreSQL database adapter;

or what is the difference between using postgresql vs postgresql_psycopg2 while establishing connection in the settings.py file in a Django project?

Because either one works fine for me.

'ENGINE': 'django.db.backends.postgresql'

'ENGINE': 'django.db.backends.postgresql_psycopg2'
Magicoder
  • 330
  • 3
  • 13

1 Answers1

3

According to the documentation:

The PostgreSQL backend (django.db.backends.postgresql_psycopg2) is also available as django.db.backends.postgresql. The old name will continue to be available for backwards compatibility.

Actually, this question is already solved here.