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
commitb136f2d0dc9b47e44f2efb04ee66c74c5ad0b63c (patch)
treead49c85737158d9871e6bba94c0f673fcd95a0e0 /sbhs_server/settings.py
parenta1e0a5502f04da68b6a9ca8508dda3f9d7e1d055 (diff)
downloadSBHS-2018-Rpi-b136f2d0dc9b47e44f2efb04ee66c74c5ad0b63c.tar.gz
SBHS-2018-Rpi-b136f2d0dc9b47e44f2efb04ee66c74c5ad0b63c.tar.bz2
SBHS-2018-Rpi-b136f2d0dc9b47e44f2efb04ee66c74c5ad0b63c.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