Skip to content

Make compatible with latest Flask and Dash releases #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
asgiref
attrs==19.3.0
attrs
coveralls>=1.6.0
channels>=2.0
channels-redis
daphne
dash-bootstrap-components
Django>=2.0
django-bootstrap4
django-redis
dpd-static-support>=0.0.4
Expand Down
6 changes: 5 additions & 1 deletion django_plotly_dash/dash_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,12 @@ def get_asset_url(self, asset_name):
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

Expand Down Expand Up @@ -425,6 +427,8 @@ def __init__(self,
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
Expand Down
2 changes: 1 addition & 1 deletion django_plotly_dash/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

'''

__version__ = "2.1.2"
__version__ = "2.1.3"
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

'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",
)
Expand Down