mirror of
https://github.com/Xevion/power-math.git
synced 2025-12-09 12:08:12 -06:00
add basic Flask server files
This commit is contained in:
28
server/config.py
Normal file
28
server/config.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""config.py
|
||||
Stores all configurations for this Flask app. Would be used for storing storing and access development
|
||||
and production secret keys.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
configs = {
|
||||
'development': 'server.config.DevelopmentConfig',
|
||||
'production': 'server.config.ProductionConfig',
|
||||
'testing': 'server.config.TestingConfig'
|
||||
}
|
||||
|
||||
|
||||
class Config:
|
||||
"""Base configuration for the app."""
|
||||
|
||||
|
||||
class DevelopmentConfig(Config):
|
||||
"""Development configuration for the app."""
|
||||
|
||||
|
||||
class ProductionConfig(Config):
|
||||
"""Production configuration for the app."""
|
||||
|
||||
|
||||
class TestingConfig(Config):
|
||||
"""Testing configuraiton for the app."""
|
||||
Reference in New Issue
Block a user