diff --git a/datasette/app.py b/datasette/app.py index 75f05d88..fab89da1 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -2052,6 +2052,7 @@ class Datasette: and "ds_actor" in request.cookies and request.actor, "app_css_hash": self.app_css_hash(), + "static_hash": self.static_hash, "zip": zip, "body_scripts": body_scripts, "format_bytes": format_bytes, diff --git a/datasette/handle_exception.py b/datasette/handle_exception.py index 96398a4c..3c78e6fd 100644 --- a/datasette/handle_exception.py +++ b/datasette/handle_exception.py @@ -67,6 +67,7 @@ def handle_exception(datasette, request, exception): info, urls=datasette.urls, app_css_hash=datasette.app_css_hash(), + static_hash=datasette.static_hash, menu_links=lambda: [], ) ), diff --git a/datasette/templates/base.html b/datasette/templates/base.html index e1767deb..23814d6a 100644 --- a/datasette/templates/base.html +++ b/datasette/templates/base.html @@ -8,7 +8,7 @@ {% endfor %} - + {% for url in extra_js_urls %} {% endfor %} @@ -70,7 +70,7 @@ {% endfor %} {% if select_templates %}{% endif %} - + diff --git a/datasette/templates/table.html b/datasette/templates/table.html index c841e1be..e5dd5ded 100644 --- a/datasette/templates/table.html +++ b/datasette/templates/table.html @@ -4,9 +4,9 @@ {% block extra_head %} {{- super() -}} - - - + + +