basic routes, basic collapse accordion season/episode list, basic templates

This commit is contained in:
Xevion
2020-08-02 10:06:07 -05:00
parent dadaa3b5ee
commit 72201c28d7
14 changed files with 62674 additions and 19 deletions

42
the_office/config.py Normal file
View File

@@ -0,0 +1,42 @@
"""
config.py
Stores all configurations used by the application from database URLs to Secret keys to extension settings.
"""
import os
configs = {
'development': 'the_office.config.DevelopmentConfig',
'testing': 'the_office.config.TestingConfig',
'production': 'the_office.config.ProductionConfig'
}
class Config:
"""
Base configuration.
"""
pass
class DevelopmentConfig(Config):
"""
Insecure and unrecommended config for use during development.
"""
SECRET_KEY = 'INSECURE'
class TestingConfig(DevelopmentConfig):
"""
Configuration used for testing the application.
"""
TESTING = True
WTF_CSRF_ENABLED = False
class ProductionConfig(Config):
"""
Configuration used for running in secure production environment.
"""
SECRET_KEY = os.getenv('SECRET_KEY')