flipped MODE switch for postgres check

This commit is contained in:
Sarabraj Singh
2021-06-14 13:55:11 -04:00
parent f73de11acc
commit 7a130a0616

View File

@@ -151,6 +151,7 @@ def manage():
from django.core.management import execute_from_command_line
# enforce the postgres version is equal to 12. if not, then terminate program with exit code of 1
if not MODE == 'development':
if (connection.pg_version // 10000) < 12:
sys.stderr.write("Postgres version 12 is required\n")
sys.exit(1)