-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
33 lines (22 loc) · 936 Bytes
/
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
# config.py
"""
This file should contain one variable assignment per line.
When the app is initialized, the variables in this file will
be used to configure Flask and its extensions are accessible
via the "app.config" dictionary e.g."app.config['DEBUG']"
--
Those configuration variables can be used by flask, extensions or me.
# app.py or app/__init__.py
from flask import Flask
app = Flask(__name__)
app.config.from_object('config')
# so now i can access the configuration variables via app.config["VAR_NAME"]
--
BCRYPT_LOG_ROUNDS | If you are using Flask-Bcrypt to hash your passwords,
you'll need to specify the number of "rounds" that the algorithm executes
in hashing a password. The more rounds used to hash a password, the
longer it'll take for an attacker to guess a password given a hash.
"""
DEBUG = False # turns off debugging features in Flask
BCRYPT_LOG_ROUNDS = 12
SQLALCHEMY_TRACK_MODIFICATIONS = False