Updating environment strings
There are different settings you might want to change depending on the application environment like toggling the debug mode, setting the secret key, and other such environment-specific things.The way Flask is designed usually requires the configuration to be available when the application starts up.Make sure to load the configuration very early on, so that extensions have the ability to access the configuration when starting up.
For example, copy the output of this to your config: Inform the application what path it is mounted under by the application / web server.This makes packaging and distributing your application possible via various package handling tools ( The configuration files themselves are actual Python files.Only values in uppercase are actually stored in the config object later on.With ongoing development of Python, some platforms that used to be supported earlier are no longer supported (due to the lack of users or developers).Check Windows has a built-in dialog for changing environment variables (following guide applies to XP classical view): Right-click the icon for your machine (usually located on your Desktop and called “My Computer”) and choose In this dialog, you can add or modify User and System variables.
Search for updating environment strings:
This is used for generating URLs outside the context of a request (inside a request, the dispatcher is responsible for setting Sort the keys of JSON objects alphabetically.