mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 01:16:47 -06:00
12 lines
382 B
Python
12 lines
382 B
Python
import os
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
with open('key', 'r') as key:
|
|
key = key.read()
|
|
|
|
class Config(object):
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or key
|
|
TEMPLATES_AUTO_RELOAD=True
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
|
|
'sqlite:///' + os.path.join(basedir, 'app.db')
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False |