|
| 1 | +""" |
| 2 | +Settings for the local instance of our django app. |
| 3 | +WARNING: this file should |
| 4 | +not be committed or shared with others. |
| 5 | +""" |
| 6 | +# To set your local settings, edit the values below and change the name of this |
| 7 | +# file to 'local_settings.py' |
| 8 | + |
| 9 | +# A secret key can be generated by opening a django shell and running the |
| 10 | +# get_secret_key() function. Copy and past it in below. |
| 11 | +# python manage.py shell |
| 12 | +# from django.core.management.utils import get_random_secret_key |
| 13 | +# get_random_secret_key() |
| 14 | +SECRET_KEY = '#*4^he=p495+3dj34qit+lsb61$yfgcbrg9-(sle04al!yv*r+' |
| 15 | + |
| 16 | +# Debug should be set to False for production environments, True for dev |
| 17 | +# environments. |
| 18 | +DEBUG = True |
| 19 | + |
| 20 | +# This can be blank if debug is True else it should contain the names of the |
| 21 | +# appropriate servers. |
| 22 | +ALLOWED_HOSTS = [] |
| 23 | + |
| 24 | + |
| 25 | +# The bellow settings can be used to ensure that cookie data is only sent over |
| 26 | +# secure HTTPS connections. Set them to True if this is the case. Note that this |
| 27 | +# requires you to have HTTPS active on your site. |
| 28 | +CSRF_COOKIE_SECURE = False |
| 29 | +SESSION_COOKIE_SECURE = False |
| 30 | + |
| 31 | +# # Setting up you database. Bellow are settings for a MySQL batabase. If you |
| 32 | +# # leave these commented out your site will use a sqlite database. |
| 33 | +''' |
| 34 | +DATABASES = { |
| 35 | + 'default': { |
| 36 | + 'ENGINE': 'django.db.backends.mysql', |
| 37 | + 'NAME': '[DATA BASE NAME]', |
| 38 | + 'USER': '[USER NAME]', |
| 39 | + 'PASSWORD': '[USER PASSWORD]', |
| 40 | + 'HOST': '[HOST]', |
| 41 | + } |
| 42 | + } |
| 43 | +''' |
| 44 | + |
| 45 | +# EMAIL SETTINGS |
| 46 | +# add your details between ' ' |
| 47 | +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' |
| 48 | +EMAIL_HOST = 'your email host eg: for gmail it is smtp.gmail.com' |
| 49 | +EMAIL_PORT = 587 # change to your port |
| 50 | +EMAIL_USE_TLS = True #set true/false |
| 51 | +EMAIL_USE_SSL = False #set true/false |
| 52 | +EMAIL_HOST_USER = 'youremail@example.com' |
| 53 | +EMAIL_HOST_PASSWORD = 'yourNOTsosecretpassword' |
| 54 | + |
| 55 | +# Settings for a demo user that people can use without registering for their own |
| 56 | +# account. |
| 57 | +# IMPORTANT : |
| 58 | +# This user should be set up using an admin account using following creds and MUST have the |
| 59 | +# profile.is_demo_user set to true. |
| 60 | +DEMO_USER_USERNAME = "guestuser" |
| 61 | +DEMO_USER_PASSWORD = "guestuserpassword" |
0 commit comments