Flask Factory Configuration
why? When i need my API to behavie diffrently based on the enviroment where the application run. for example on my local machine i would like to add line number to the looging format or save the log file on specific location. In this example 4 types of configuration per evniroment:
- Basic configuration
- Production configuration
- Development Configuration
- Testing Configuration
How to use :
Comments
Post a Comment