22 lines
557 B
Python
22 lines
557 B
Python
from flaskbase.settings.base import *
|
|
|
|
#SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://postgres:postgres@postgres'
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/flaskbase.db'
|
|
|
|
SOCIAL_FACEBOOK = {
|
|
'consumer_key': 'APP-ID',
|
|
'consumer_secret': 'APP-SECRET',
|
|
'request_token_params': {
|
|
'scope': 'email,user_friends',
|
|
}
|
|
}
|
|
|
|
from flask_mail import email_dispatched
|
|
|
|
|
|
def log_message(message, app):
|
|
app.logger.debug('subject:%s', message.subject)
|
|
app.logger.debug('body:%s', message.body)
|
|
|
|
email_dispatched.connect(log_message)
|