From 895ca43cc50b7edfb105d751329e596b2d2706c7 Mon Sep 17 00:00:00 2001 From: AKSHAY ARJUN <68991993+Akshay-Arjun@users.noreply.github.com> Date: Mon, 2 Oct 2023 01:15:42 +0530 Subject: [PATCH] V1: Include all required functionality removed sensitive info, added instructions --- national-pm/local_settings.py | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 national-pm/local_settings.py diff --git a/national-pm/local_settings.py b/national-pm/local_settings.py new file mode 100644 index 0000000..79a5865 --- /dev/null +++ b/national-pm/local_settings.py @@ -0,0 +1,61 @@ +""" +Settings for the local instance of our django app. +WARNING: this file should +not be committed or shared with others. +""" +# To set your local settings, edit the values below and change the name of this +# file to 'local_settings.py' + +# A secret key can be generated by opening a django shell and running the +# get_secret_key() function. Copy and past it in below. +# python manage.py shell +# from django.core.management.utils import get_random_secret_key +# get_random_secret_key() +SECRET_KEY = '#*4^he=p495+3dj34qit+lsb61$yfgcbrg9-(sle04al!yv*r+' + +# Debug should be set to False for production environments, True for dev +# environments. +DEBUG = True + +# This can be blank if debug is True else it should contain the names of the +# appropriate servers. +ALLOWED_HOSTS = [] + + +# The bellow settings can be used to ensure that cookie data is only sent over +# secure HTTPS connections. Set them to True if this is the case. Note that this +# requires you to have HTTPS active on your site. +CSRF_COOKIE_SECURE = False +SESSION_COOKIE_SECURE = False + +# # Setting up you database. Bellow are settings for a MySQL batabase. If you +# # leave these commented out your site will use a sqlite database. +''' +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME': '[DATA BASE NAME]', + 'USER': '[USER NAME]', + 'PASSWORD': '[USER PASSWORD]', + 'HOST': '[HOST]', + } + } +''' + +# EMAIL SETTINGS +# add your details between ' ' +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_HOST = 'your email host eg: for gmail it is smtp.gmail.com' +EMAIL_PORT = 587 # change to your port +EMAIL_USE_TLS = True #set true/false +EMAIL_USE_SSL = False #set true/false +EMAIL_HOST_USER = 'youremail@example.com' +EMAIL_HOST_PASSWORD = 'yourNOTsosecretpassword' + +# Settings for a demo user that people can use without registering for their own +# account. +# IMPORTANT : +# This user should be set up using an admin account using following creds and MUST have the +# profile.is_demo_user set to true. +DEMO_USER_USERNAME = "guestuser" +DEMO_USER_PASSWORD = "guestuserpassword"