Allow plugins to use django.contrib.postgres

This commit is contained in:
Raphael Michel
2020-11-27 15:20:38 +01:00
parent c71c78cf69
commit 93a7c5df09

View File

@@ -307,6 +307,10 @@ INSTALLED_APPS = [
'phonenumber_field'
]
if db_backend == 'postgresql':
# ALlow plugins to use django.contrib.postgres
INSTALLED_APPS.insert(0, 'django.contrib.postgres')
try:
import django_extensions # noqa
INSTALLED_APPS.append('django_extensions')