118 lines
3.3 KiB
Markdown
118 lines
3.3 KiB
Markdown
# create_app()
|
|
|
|
> God node · 13 connections · [/home/scheianu/digiserver-v2/app/app.py](file:///home/scheianu/digiserver-v2/app/app.py#L17)
|
|
|
|
## Call Trace Diagram
|
|
|
|
```mermaid
|
|
sequenceDiagram
|
|
participant P0 as create_app()
|
|
participant P1 as ScriptNameFix
|
|
participant P2 as DigiServer v2 - Application Factory Modern Flask application with blueprint arch
|
|
participant P3 as User
|
|
participant P4 as DevelopmentConfig
|
|
participant P5 as ProductionConfig
|
|
participant P6 as TestingConfig
|
|
participant P7 as Application factory pattern Args: config_name: Configuration en
|
|
participant P8 as Register application blueprints
|
|
participant P9 as Configure Flask-Login
|
|
participant P10 as Register error handlers
|
|
participant P11 as Register CLI commands
|
|
participant P12 as Register context processors for templates
|
|
participant P13 as Register custom Jinja2 template filters
|
|
participant P14 as configure_login_manager()
|
|
participant P15 as register_blueprints()
|
|
participant P16 as register_error_handlers()
|
|
participant P17 as register_commands()
|
|
participant P18 as register_context_processors()
|
|
participant P19 as register_template_filters()
|
|
participant P20 as init_portal_sso()
|
|
participant P21 as test_edit_media_endpoint()
|
|
participant P22 as add_muted_column()
|
|
participant P23 as main()
|
|
P0->>+ P1: calls
|
|
P1-->>- P0: return
|
|
P1->>+ P0: calls
|
|
P0-->>- P1: return
|
|
P1->>+ P2: uses
|
|
P2-->>- P1: return
|
|
P2->>+ P3: uses
|
|
P3-->>- P2: return
|
|
P2->>+ P1: uses
|
|
P1-->>- P2: return
|
|
P2->>+ P4: uses
|
|
P4-->>- P2: return
|
|
P2->>+ P5: uses
|
|
P5-->>- P2: return
|
|
P2->>+ P6: uses
|
|
P6-->>- P2: return
|
|
P1->>+ P7: uses
|
|
P7-->>- P1: return
|
|
P7->>+ P3: uses
|
|
P3-->>- P7: return
|
|
P7->>+ P1: uses
|
|
P1-->>- P7: return
|
|
P7->>+ P4: uses
|
|
P4-->>- P7: return
|
|
P7->>+ P5: uses
|
|
P5-->>- P7: return
|
|
P7->>+ P6: uses
|
|
P6-->>- P7: return
|
|
P1->>+ P8: uses
|
|
P8-->>- P1: return
|
|
P1->>+ P9: uses
|
|
P9-->>- P1: return
|
|
P1->>+ P10: uses
|
|
P10-->>- P1: return
|
|
P1->>+ P11: uses
|
|
P11-->>- P1: return
|
|
P1->>+ P12: uses
|
|
P12-->>- P1: return
|
|
P1->>+ P13: uses
|
|
P13-->>- P1: return
|
|
P0->>+ P14: calls
|
|
P14-->>- P0: return
|
|
P0->>+ P15: calls
|
|
P15-->>- P0: return
|
|
P0->>+ P16: calls
|
|
P16-->>- P0: return
|
|
P0->>+ P17: calls
|
|
P17-->>- P0: return
|
|
P0->>+ P18: calls
|
|
P18-->>- P0: return
|
|
P0->>+ P19: calls
|
|
P19-->>- P0: return
|
|
P0->>+ P20: calls
|
|
P20-->>- P0: return
|
|
P0->>+ P21: calls
|
|
P21-->>- P0: return
|
|
P0->>+ P22: calls
|
|
P22-->>- P0: return
|
|
P0->>+ P23: calls
|
|
P23-->>- P0: return
|
|
```
|
|
|
|
## Connections by Relation
|
|
|
|
### calls
|
|
- [[ScriptNameFix]] `INFERRED`
|
|
- [[configure_login_manager()]] `EXTRACTED`
|
|
- [[register_blueprints()]] `EXTRACTED`
|
|
- [[register_error_handlers()]] `EXTRACTED`
|
|
- [[register_commands()]] `EXTRACTED`
|
|
- [[register_context_processors()]] `EXTRACTED`
|
|
- [[register_template_filters()]] `EXTRACTED`
|
|
- [[init_portal_sso()]] `INFERRED`
|
|
- [[test_edit_media_endpoint()]] `INFERRED`
|
|
- [[add_muted_column()]] `INFERRED`
|
|
- [[main()]] `INFERRED`
|
|
|
|
### contains
|
|
- [[app.py]] `EXTRACTED`
|
|
|
|
### rationale_for
|
|
- [[Application factory pattern Args: config_name: Configuration en]] `EXTRACTED`
|
|
|
|
---
|
|
|
|
*Part of the graphify knowledge wiki. See [[index]] to navigate.* |