-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal_settings.py
61 lines (53 loc) · 2.07 KB
/
local_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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"