Added deprecation warning

This commit is contained in:
trhr 2020-02-12 15:31:19 -06:00
parent 90db149a28
commit 47eb743461

View file

@ -115,3 +115,7 @@ def check_warnings(settings):
print(" [Devel: settings.IN_GAME_ERRORS is True. Turn off in production.]")
if settings.ALLOWED_HOSTS == ["*"]:
print(" [Devel: settings.ALLOWED_HOSTS set to '*' (all). Limit in production.]")
for k,v in settings.DATABASES.items():
if "psycopg" in v.get("ENGINE",None):
print(" [Devel: postgresql_psycopg2 backend is deprecated. This module is now called postgresql")
print(" Switch settings.DATABASES to use \"ENGINE\": \"django.db.backends.postgresql\"")