summaryrefslogtreecommitdiff
path: root/testapp/production.py
diff options
context:
space:
mode:
authorParth buch2012-03-13 15:19:35 +0530
committerParth buch2012-03-13 15:19:35 +0530
commitb9c884f370d08654c418b7cbd010f3c61870b193 (patch)
treebd424e547fa4ab794b60b8b56a9d99c2e5b1ea1c /testapp/production.py
parente29522ba1798ca07d91925a5321249925c5468be (diff)
downloadonline_test-b9c884f370d08654c418b7cbd010f3c61870b193.tar.gz
online_test-b9c884f370d08654c418b7cbd010f3c61870b193.tar.bz2
online_test-b9c884f370d08654c418b7cbd010f3c61870b193.zip
Updated production.py to close the issue#3
Diffstat (limited to 'testapp/production.py')
-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
+