summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2017-04-07 15:57:46 +0530
committeradityacp2017-04-07 16:12:36 +0530
commit8d0186ad51d3b0aa3991cb43c4477bcf2cdfb283 (patch)
tree98f3a5ab68f2977c688d7587ec07361e8b8ad355
parent5938bbf5d6510dcb51096a7e943a2e2208d06b7b (diff)
downloadonline_test-8d0186ad51d3b0aa3991cb43c4477bcf2cdfb283.tar.gz
online_test-8d0186ad51d3b0aa3991cb43c4477bcf2cdfb283.tar.bz2
online_test-8d0186ad51d3b0aa3991cb43c4477bcf2cdfb283.zip
Change settings for production deployment
-rw-r--r--online_test/settings.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/online_test/settings.py b/online_test/settings.py
index dcbbb21..8d0613b 100644
--- a/online_test/settings.py
+++ b/online_test/settings.py
@@ -102,6 +102,7 @@ MEDIA_URL = "/data/"
MEDIA_ROOT = os.path.join(BASE_DIR, "yaksh", "data")
+# Set this varable to <True> if smtp-server is not allowing to send email.
EMAIL_USE_TLS = False
EMAIL_HOST = 'your_email_host'
@@ -110,6 +111,28 @@ EMAIL_PORT = 'your_email_port'
EMAIL_HOST_USER = 'email_host_user'
+EMAIL_HOST_PASSWORD = 'email_host_password'
+
+# SENDER_EMAIL, REPLY_EMAIL, PRODUCTION_URL, IS_DEVELOPMENT are used in email
+# verification. Set the variables accordingly to avoid errors in production
+
+# This email id will be used as <from address> for sending emails.
+# For example no_reply@<your_organization>.in can be used.
+SENDER_EMAIL = 'your_email'
+
+# This email id will be used by users to send their queries
+# For example queries@<your_organization>.in can be used.
+REPLY_EMAIL = 'your_reply_email'
+
+# This url will be used in email verification to create activation link.
+# Add your hosted url to this variable.
+# For example https://127.0.0.1:8000 or 127.0.0.1:8000
+PRODUCTION_URL = 'your_project_url'
+
+# Set this variable to <False> once the project is in production.
+# If this variable is kept <True> in production, email will not be verified.
+IS_DEVELOPMENT = True
+
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
TEMPLATES = [