mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-15 22:13:18 -06:00
basic routes, basic collapse accordion season/episode list, basic templates
This commit is contained in:
42
the_office/config.py
Normal file
42
the_office/config.py
Normal 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')
|
||||
Reference in New Issue
Block a user