From bc336f07be952e7b6db3a088a49d23c51968b5b7 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 9 Oct 2017 16:18:14 +0530 Subject: - Add dependencies to setup.py file - Modify demo_settings.py and add new production settings variables --- yaksh/demo_templates/demo_settings.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'yaksh/demo_templates') diff --git a/yaksh/demo_templates/demo_settings.py b/yaksh/demo_templates/demo_settings.py index 3c38794..6089be5 100644 --- a/yaksh/demo_templates/demo_settings.py +++ b/yaksh/demo_templates/demo_settings.py @@ -111,6 +111,35 @@ EMAIL_PORT = 'your_email_port' EMAIL_HOST_USER = 'email_host_user' +EMAIL_HOST_PASSWORD = 'email_host_password' + +# Set EMAIL_BACKEND to 'django.core.mail.backends.smtp.EmailBackend' +# in production +EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' + +# 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 for sending emails. +# For example no_reply@.in can be used. +SENDER_EMAIL = 'your_email' + +# Organisation/Indivudual Name. +SENDER_NAME = 'your_name' + +# This email id will be used by users to send their queries +# For example queries@.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 once the project is in production. +# If this variable is kept in production, email will not be verified. +IS_DEVELOPMENT = True + DEFAULT_FROM_EMAIL = EMAIL_HOST_USER TEMPLATES = [ -- cgit