-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
23 lines (17 loc) · 887 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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
# SECRET KEY
SECRET_KEY = os.environ.get('SECRET_KEY') or 'A-VERY-LONG-SECRET-KEY'
# RECAPTCHA PUBLIC KEY
RECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_PUBLIC_KEY') or '6LcF7uwUAAAAAPn3nBtir1PB-kW-Pd2W4H4cFtgF'
RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY') or '6LcF7uwUAAAAAMfRGik8Jend-I0T82GX-nnL03wm'
# database configuration
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Flask Gmail Configuration
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = os.environ.get('GMAIL_USERNAME') or '[email protected]'
MAIL_PASSWORD = os.environ.get('GMAIL_PASSWORD') or 'wyktvzfxyghqujhg'