make_config() — flask Function Reference
Architecture documentation for the make_config() function in app.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 908b035e_2774_0f2e_e247_003a3044450d["make_config()"] 38f6d4a2_834e_2acd_e1b6_f45c58079ccd["App"] 908b035e_2774_0f2e_e247_003a3044450d -->|defined in| 38f6d4a2_834e_2acd_e1b6_f45c58079ccd 4b05301c_76b4_7bf6_5a71_e4588c1d623f["__init__()"] 4b05301c_76b4_7bf6_5a71_e4588c1d623f -->|calls| 908b035e_2774_0f2e_e247_003a3044450d style 908b035e_2774_0f2e_e247_003a3044450d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/sansio/app.py lines 479–493
def make_config(self, instance_relative: bool = False) -> Config:
"""Used to create the config attribute by the Flask constructor.
The `instance_relative` parameter is passed in from the constructor
of Flask (there named `instance_relative_config`) and indicates if
the config should be relative to the instance path or the root path
of the application.
.. versionadded:: 0.8
"""
root_path = self.root_path
if instance_relative:
root_path = self.instance_path
defaults = dict(self.default_config)
defaults["DEBUG"] = get_debug_flag()
return self.config_class(root_path, defaults)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does make_config() do?
make_config() is a function in the flask codebase, defined in src/flask/sansio/app.py.
Where is make_config() defined?
make_config() is defined in src/flask/sansio/app.py at line 479.
What calls make_config()?
make_config() is called by 1 function(s): __init__.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free