mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-10 08:08:52 -06:00
16 lines
673 B
Python
16 lines
673 B
Python
import os, json
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
keys = json.load(open(os.path.join(basedir, 'keys.json'), 'r'))
|
|
|
|
class Config(object):
|
|
SECRET_KEY = keys['SECRET_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
|
|
# Flask-User settings
|
|
USER_APP_NAME = "Xevion.dev" # Shown in and email templates and page footers
|
|
USER_ENABLE_EMAIL = False # Disable email authentication
|
|
USER_ENABLE_USERNAME = True # Enable username authentication
|
|
USER_REQUIRE_RETYPE_PASSWORD = True |