adding check back in

This commit is contained in:
John Jarvis
2014-02-03 16:54:54 -05:00
parent 693497673a
commit d28f2f5905

View File

@@ -21,5 +21,9 @@ DB_OVERRIDES = dict(
PORT=os.environ.get('DB_MIGRATION_PORT', DATABASES['default']['PORT']),
)
if not DB_OVERRIDES['PASSWORD']:
raise ImproperlyConfigured("No database password was provided for running "
"migrations. This is fatal.")
for override, value in DB_OVERRIDES.iteritems():
DATABASES['default'][override] = value