forked from vlead/semantic-style-sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
15 lines (11 loc) · 762 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#to make the WTF forms in app highly secure
WTF_CSRF_ENABLED = True #this is for cross-site request forgery prevention
SECRET_KEY = '_Aum_JaiSaiRam,SuperD00perSecretKey_ThatUwillN0T_b_ab1E_2_GUESS?' # needed when CSRF is enabled; this makes a cryptographic token
import os
basedir = os.path.abspath(os.path.dirname(__file__))
#configuration info for the Mozilla Persona authorization work
PERSONA_JS='https://login.persona.org/include.js'
PERSONA_VERIFIER='https://verifier.login.persona.org/verify'
# sqlite database related constants
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') # path to our database
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') # folder where we will store the SQLAlchemy migrate files.