microblog/config.py

10 lines
323 B
Python
Raw Normal View History

2017-09-05 07:04:56 +00:00
import os
2017-09-11 21:30:21 +00:00
basedir = os.path.abspath(os.path.dirname(__file__))
2017-09-05 07:04:56 +00:00
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
2017-09-11 21:30:21 +00:00
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False