Skip to content

Commit a694e05

Browse files
authored
Merge pull request #3323 from plotly/wsgi-call
Make dash wsgi compliant
2 parents b0bb8de + e8a235a commit a694e05

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2323

2424
- [#3303](https://github.com/plotly/dash/pull/3303) Improve flatten_grouping performance (callback with dictionary output/input)
2525
- [#3304](https://github.com/plotly/dash/pull/3304) Speed up function _operation by 80%
26+
- [#3323](https://github.com/plotly/dash/pull/3323) Make Dash instances WSGI compliant, can now call gunicorn on the dash app itself.
2627

2728
## [3.0.4] - 2025-04-24
2829

dash/dash.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,3 +2395,11 @@ def update(pathname_, search_, **states):
23952395
Output(_ID_DUMMY, "children"),
23962396
Input(_ID_STORE, "data"),
23972397
)
2398+
2399+
def __call__(self, environ, start_response):
2400+
"""
2401+
This method makes instances of Dash WSGI-compliant callables.
2402+
It delegates the actual WSGI handling to the internal Flask app's
2403+
__call__ method.
2404+
"""
2405+
return self.server(environ, start_response)

0 commit comments

Comments
 (0)