Skip to content

Commit

Permalink
Update contributor details (#494)
Browse files Browse the repository at this point in the history
* Update contributor details

* Update favicon

* Add handling of bs5 alongside bs4

* Bump version to 2.3.1

---------

Co-authored-by: delsim <[email protected]>
  • Loading branch information
delsim and delsim committed Mar 28, 2024
1 parent 83d37fa commit 7507f2a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Thanks to the following people:

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

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

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

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

[funkyrailroad](https://github.com/funkyrailroad)

Binary file added demo/demo/static/demo/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions demo/demo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% bootstrap_javascript jquery="full"%}
{% block extra_header%}{% endblock%}
{% block app_header_css%}
<link rel="shortcut icon" href="{% static 'demo/favicon.png' %}" type="image/x-icon"></link>
<link rel="stylesheet" type="text/css" href="{%static "demo/demo.css"%}"></link>
{% endblock%}
{% plotly_header%}
Expand Down
8 changes: 6 additions & 2 deletions django_plotly_dash/dash_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,12 @@ def __init__(self, name=None, serve_locally=None,
self._suppress_callback_exceptions = suppress_callback_exceptions

if add_bootstrap_links:
from bootstrap4.bootstrap import css_url
bootstrap_source = css_url()['href']
try:
from bootstrap4.bootstrap import css_url
bootstrap_source = css_url()['href']
except:
from django_bootstrap5.core import css_url
bootstrap_source = css_url()['url']

if self._serve_locally:
# Ensure package is loaded; if not present then pip install dpd-static-support
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.3.0"
__version__ = "2.3.1"

0 comments on commit 7507f2a

Please sign in to comment.