-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
51 lines (39 loc) · 1.3 KB
/
config.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
import os,jinja2
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
CSRF_SESSION_KEY = "1I4LINdWx35bz7Tl773nQu50Ne4bY90n"
# Secret key for signing cookies
SECRET_KEY = "175K8P8j6h65p32ltvkcw9WmL18BHBKO"
# TEMPLATES FOLDER
TEMPLATE_FOLDER = "templates"
# JINJA LOADER
JINJA_ENVIRONMENT = jinja2.ChoiceLoader([
jinja2.FileSystemLoader([x[0] for x in os.walk('templates')]),
])
# ASSETS FOLDER
ASSETS_FOLDER = "style"
# MONGODB CONFIGURATION
MONGO_HOST='localhost'
MONGO_PORT=27017
MONGO_DBNAME='actugdb'
#EMAIL SERVER
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
#app.config['MAIL_USERNAME'] = os.environ.get('MAIL_USERNAME')
#app.config['MAIL_PASSWORD'] = os.environ.get('MAIL_PASSWORD')
MAIL_USERNAME = "[email protected]"
MAIL_PASSWORD = "user_password"
# administrator list
ADMINS = ['[email protected]']