Skip to content
Snippets Groups Projects
Unverified Commit 29285e7e authored by Mark Gibbs's avatar Mark Gibbs Committed by GitHub
Browse files

Make compatible with latest Flask and Dash releases (#429)


* Make compatible with latest Flask and Dash releases

* Bump version to 2.1.3

Co-authored-by: default avatardelsim <dev@gibbsconsulting.ca>
parent f6b23f59
No related branches found
No related tags found
No related merge requests found
......@@ -375,10 +375,12 @@ class DjangoDash:
class PseudoFlask(Flask):
'Dummy implementation of a Flask instance, providing stub functionality'
def __init__(self):
self.config = {}
self.config = {'DEBUG': False}
self.endpoints = {}
self.name = "PseudoFlaskDummyName"
self.blueprints = {}
self._got_first_request = False
self.before_request_funcs = {}
# pylint: disable=unused-argument, missing-docstring
......@@ -425,6 +427,8 @@ class WrappedDash(Dash):
kwargs['url_base_pathname'] = self._base_pathname
kwargs['server'] = self._notflask
#xkwargs['DEBUG'] = kwargs.get('DEBUG', False)
super().__init__(__name__, **kwargs)
self.css.config.serve_locally = serve_locally
......
......@@ -23,4 +23,4 @@ SOFTWARE.
'''
__version__ = "2.1.2"
__version__ = "2.1.3"
......@@ -4,7 +4,7 @@ dpd-components
dash-bootstrap-components
channels<3.0
channels>=2.0
Django>=2.2,<4.0.0
Flask>=1.0.2
Werkzeug>=2.0,<2.1
Werkzeug
......@@ -46,10 +46,10 @@ setup(
'dash-bootstrap-components',
'channels<3.0',
'channels>=2.0',
'Django>=2.2,<4.0.0',
'Flask>=1.0.2',
'Werkzeug>=2.0,<2.1',
'Werkzeug',
],
python_requires=">=3.8",
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment