-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py~
executable file
·36 lines (26 loc) · 1.11 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
# location of dataset relative to root folder containing groundtruth_webapp
dataset_root = 'dataset'
# DATABASE SETTINGS
# MYSQL
mysql_db_username = '(insert username)'
mysql_db_password = '(insert password)'
mysql_db_name = 'groundtruth_db'
mysql_db_hostname = 'localhost'
# WARNING: Set DEBUG to false if external hosting
DEBUG = True
MAINTAIN = True
PORT = 8080
HOST = "0.0.0.0"
SQLALCHEMY_ECHO = False
SECRET_KEY = "(insert secret key)"
# MySQL
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://{DB_USER}:{DB_PASS}@{DB_ADDR}/{DB_NAME}".format(DB_USER=mysql_db_username,
DB_PASS=mysql_db_password,
DB_ADDR=mysql_db_hostname,
DB_NAME=mysql_db_name)
# Email Server Configuration
MAIL_DEFAULT_SENDER = "leo@localhost"
PASSWORD_RESET_EMAIL ="""
Hi,
Please click on the link below to reset your password
<a href="/forgotpassword/{token}> Click here </a>"""