import os
import json

with open(os.path.abspath('flaskblog/config.json')) as config_file:
    config = json.load(config_file)

class Config:
    SECRET_KEY = config['FLASK_SECRET_KEY']
    SQLALCHEMY_DATABASE_URI = config['SQLALCHEMY_DATABASE_URI']
    MAIL_SERVER = 'smtp.googlemail.com'
    MAIL_PORT = '587'
    MAIL_USE_TLS = True
    MAIL_USERNAME = config['EMAIL_USER']
    MAIL_PASSWORD = config['EMAIL_PASS']