Skip to content

Commit 7507f2a

Browse files
delsimdelsim
and
delsim
authored
Update contributor details (#494)
* Update contributor details * Update favicon * Add handling of bs5 alongside bs4 * Bump version to 2.3.1 --------- Co-authored-by: delsim <[email protected]>
1 parent 83d37fa commit 7507f2a

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CONTRIBUTIONS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Thanks to the following people:
1818

1919
[weber-s](https://github.com/weber-s)
2020

21-
[eddy-obj](https://github.com/eddy-ojb)
21+
[eddyojb88](https://github.com/eddyojb88)
2222

2323
[brylie](https://github.com/brylie)
2424

@@ -61,3 +61,4 @@ Thanks to the following people:
6161
[erl987](https://github.com/erl987)
6262

6363
[funkyrailroad](https://github.com/funkyrailroad)
64+

demo/demo/static/demo/favicon.png

1.78 KB
Loading

demo/demo/templates/base.html

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{% bootstrap_javascript jquery="full"%}
99
{% block extra_header%}{% endblock%}
1010
{% block app_header_css%}
11+
<link rel="shortcut icon" href="{% static 'demo/favicon.png' %}" type="image/x-icon"></link>
1112
<link rel="stylesheet" type="text/css" href="{%static "demo/demo.css"%}"></link>
1213
{% endblock%}
1314
{% plotly_header%}

django_plotly_dash/dash_wrapper.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,12 @@ def __init__(self, name=None, serve_locally=None,
191191
self._suppress_callback_exceptions = suppress_callback_exceptions
192192

193193
if add_bootstrap_links:
194-
from bootstrap4.bootstrap import css_url
195-
bootstrap_source = css_url()['href']
194+
try:
195+
from bootstrap4.bootstrap import css_url
196+
bootstrap_source = css_url()['href']
197+
except:
198+
from django_bootstrap5.core import css_url
199+
bootstrap_source = css_url()['url']
196200

197201
if self._serve_locally:
198202
# Ensure package is loaded; if not present then pip install dpd-static-support

django_plotly_dash/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
2424
'''
2525

26-
__version__ = "2.3.0"
26+
__version__ = "2.3.1"

0 commit comments

Comments
 (0)