Adding a new env to handle escalating privileges to run db migrations.

(cherry picked from commit d2554909d8)
This commit is contained in:
e0d
2013-06-11 14:42:39 -04:00
committed by Ned Batchelder
parent 7b7a3427d9
commit d380c76df6

8
lms/envs/aws_migrate.py Normal file
View File

@@ -0,0 +1,8 @@
from .aws import *
import os
USER = os.environ.get('DB_MIGRATION_USER', 'root')
PASSWORD = os.environ.get('DB_MIGRATION_PASS', None)
DATABASES['default']['USER'] = USER
DATABASES['default']['PASSWORD'] = PASSWORD