-
Book Overview & Buying
-
Table Of Contents
Python API Development Fundamentals
By :
Most applications require multiple configurations; at least one is required for a production server, and one for development use. There will be differences between them, such as the debug mode, secret key, and database URL. We can use a default configuration that is always loaded, and a separate configuration for the production server and development environment to inherit the default configuration depending on the environment. For environment-specific configurations, we will create two new classes – DevelopmentConfig and ProductionConfig.
In this exercise, we will segregate our application configurations between the development and production environments. For configurations such as DEBUG, we will require different values for the two environments. The same goes for the database URL as well. We are therefore going to create two sets of configurations...
Change the font size
Change margin width
Change background colour