forked from janusnic/flask-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
45 lines (34 loc) · 1.59 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
import os
# DATABASE SETTINGS
pg_db_username = 'postgres'
pg_db_password = os.environ['PG_DB_PASSWORD']
pg_db_name = 'freddy'
pg_db_hostname = 'localhost'
# MYSQL
mysql_db_username = 'root'
mysql_db_password = ''
mysql_db_name = 'fscaffold'
mysql_db_hostname = 'localhost'
DEBUG = True
PORT = 5000
HOST = "0.0.0.0"
SQLALCHEMY_ECHO = False
SECRET_KEY = "SOME SECRET"
#Folder to upload files must be inside the templates folder
UPLOAD_FOLDER = "templates/static/images"
# PostgreSQL
SQLALCHEMY_DATABASE_URI = "postgresql://{DB_USER}:{DB_PASS}@{DB_ADDR}/{DB_NAME}".format(DB_USER=pg_db_username,
DB_PASS=pg_db_password,
DB_ADDR=pg_db_hostname,
DB_NAME=pg_db_name)
# 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>"""