forked from Claremont-HvZ-Web-Team/claremontHvZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_local_settings.py
68 lines (50 loc) · 2.03 KB
/
sample_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
62
63
64
65
66
67
68
# Machine-specific Django settings for the Claremont HvZ project.
import datetime
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
# Do you want the site to display a bunch of information when
# something goes wrong?
DEBUG = True
# Similar to DEBUG, but for template errors.
TEMPLATE_DEBUG = DEBUG
# A list of the people with admin access, along with their email
# addresses. In production (where DEBUG is set to False), these people
# will receive emails every time something bad happens to the site.
ADMINS = (
('Hugh Mann', '[email protected]'),
)
# Does your email service use TLS? True or False.
EMAIL_USE_TLS = True
# What host does your email service use? We use "smtp.gmail.com"
EMAIL_HOST = "smtp.gmail.com"
# Your email username and password. We're not telling you ours ;)
EMAIL_HOST_USER = "[email protected]"
EMAIL_HOST_PASSWORD = "hunter2"
# Your email service's port number. Ours is 587.
EMAIL_PORT = 587
# Make this unique, and don't share it with anybody. Any string will
# do, but this tool works well:
# http://www.miniwebtool.com/django-secret-key-generator/
SECRET_KEY = ")(#$(#$58OI$u50oIJ$#%9kw4j5kkKJE9#$%9*$WUJtui4up9"
# List your databases here! For development, sqlite3 is probably sufficient.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
# 'postgresql_psycopg2',
# 'postgresql',
# 'mysql', 'sqlite3'
# or 'oracle'.
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Specify your caching solution here. For development, the DummyCache
# class is fine.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
'LOCATION': '127.0.0.1:11211',
},
}
STATIC_ROOT = os.path.join(BASE_DIR, 'static')