jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

fix #96 deprecated postgres backend strings #101

Closed jtdoepke closed 6 years ago

jtdoepke commented 6 years ago

The database backend "django.db.backends.postgresql_psycopg2" has been deprecated in Django 2.0 in favor of "django.db.backends.postgresql".

https://docs.djangoproject.com/en/2.0/releases/2.0/#id1

kennethreitz commented 6 years ago

This library is used by many apps that require a django older than 2.0 (or even 1.8).

kennethreitz commented 6 years ago

We should detect which version of Django they are using, and act accordingly.

kennethreitz commented 6 years ago

Ideally.

jtdoepke commented 6 years ago

Yep, it does that. Still uses the old engine for Django < 2.0.

kennethreitz commented 6 years ago

Excellent :)

sigmavirus24 commented 6 years ago

Closing & re-opening to trigger a travis build