summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp')
-rw-r--r--testapp/production.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/testapp/production.py b/testapp/production.py
index 2710bdb..be3d200 100644
--- a/testapp/production.py
+++ b/testapp/production.py
@@ -1,10 +1,14 @@
-from project.settings import *
+from testapp.settings import *
DEBUG=False
TEMPLATE_DEBUG=DEBUG
-DATABASE_ENGINE = 'django.db.backends.mysql'
-DATABASE_NAME = 'online_test'
-DATABASE_USER = 'online_test_user'
+
+DATABASES["default"]["ENGINE"] = 'django.db.backends.mysql'
+DATABASES["default"]["NAME"] = 'online_test'
+DATABASES["default"]["USER"] = 'online_test_user'
+
+from testapp.local import DATABASE_PASSWORD
# Imports DATABASE_PASSWORD from testapp/local.py that is not part of git repo
-from testapp.local import DATABASE_PASSWORD \ No newline at end of file
+DATABASES["default"]["PASSWORD"] = DATABASE_PASSWORD
+