mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 07:16:47 -06:00
the tracks folder was relative of the main WSGI python file due to me using my sys.path[0] method of finding the current folder the file was in, unfortunately this ends up being unreliable when put into practice
20 lines
904 B
Python
20 lines
904 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):
|
|
SPOTIFY_CACHE_TIME = 3600 # Number of seconds before the spotify-explicit program can be regenerated
|
|
REDDIT_SECRET = keys['REDDIT_SECRET']
|
|
DISCORD_TOKEN = keys['DISCORD_TOKEN']
|
|
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 |