Starting with a reminder, the configuration file is a .py file, which means you can code in it, making a more dynamic configuration, and that’s what we did.
Starting top to bottom:
Over here we start the actual configuration, and addressing the elephant in the room… Yes the configuration is in a variable CONFIG, which is a dictionary.
CORS (Cross-Origin Resource Sharing), controls the access to reasources for external request.
Note |
---|
* means all |
Logging options for the entire server, from the message format, date format to handlers