summaryrefslogtreecommitdiff
path: root/sbhs_server/settings.py
diff options
context:
space:
mode:
authorcoderick142017-05-18 11:11:54 +0530
committercoderick142017-05-18 11:13:55 +0530
commit20f7c50293fde2f2b538c422116a3383a6cdde6b (patch)
treee648db8593e1de8589f1c0007b532476e934d997 /sbhs_server/settings.py
parentfe407193c200e03070928c1e2c1a6e067d32893d (diff)
downloadSBHS-2018-Rpi-20f7c50293fde2f2b538c422116a3383a6cdde6b.tar.gz
SBHS-2018-Rpi-20f7c50293fde2f2b538c422116a3383a6cdde6b.tar.bz2
SBHS-2018-Rpi-20f7c50293fde2f2b538c422116a3383a6cdde6b.zip
Add credentials.py
Diffstat (limited to 'sbhs_server/settings.py')
-rw-r--r--sbhs_server/settings.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbhs_server/settings.py b/sbhs_server/settings.py
index b690e83..5c0f973 100644
--- a/sbhs_server/settings.py
+++ b/sbhs_server/settings.py
@@ -9,6 +9,7 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
"""
import sys #srikant
import socket
+import sbhs_server.credentials as credentials
hostname = socket.gethostname()
is_production = hostname == "vlabs-Veriton-Series"
@@ -21,7 +22,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = 'k8^&^wr-skvt1bw$7^9mp$ic^5iubco@=bz*@hljl+vz9-&&_p$$$deep'
+SECRET_KEY = credentials.PROJECT_SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = not is_production
@@ -122,8 +123,8 @@ SESSION_COOKIE_NAME = "frffvbaVq"
EMAIL_HOST = 'smtp-auth.iitb.ac.in'
EMAIL_PORT = 25
-EMAIL_HOST_USER = "username"
-EMAIL_HOST_PASSWORD = "password"
+EMAIL_HOST_USER = credentials.EMAIL_HOST_USER
+EMAIL_HOST_PASSWORD = credentials.EMAIL_HOST_PASSWORD
# Static files (CSS, JavaScript, Images)
@@ -249,7 +250,6 @@ with open(os.path.join(BASE_DIR, 'map_machine_ids.txt')) as f:
pass
online_mids = [int(i) for i in boards.keys()]
-
import sys
print >>sys.stderr, online_mids[1:33] #srikant
#srikant