mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-15 00:13:23 -06:00
begin adding base configuration
yeah this is totally copied from xevion.dev
This commit is contained in:
17
config.py
17
config.py
@@ -0,0 +1,17 @@
|
||||
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']
|
||||
HIDDEN_NUMBER = keys['HIDDEN_NUMBER']
|
||||
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
|
||||
Reference in New Issue
Block a user