Files
v1.xevion.dev/config.py
Xevion c87b9bdd7d updated Spotify to have a CACHE TIME config constant var, moved tracks folder to export inside Spotify explicit folder
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
2019-12-21 02:34:11 -06:00

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