diff --git a/bookwyrm/context_processors.py b/bookwyrm/context_processors.py index 0610a8b9a..309e84ed1 100644 --- a/bookwyrm/context_processors.py +++ b/bookwyrm/context_processors.py @@ -15,4 +15,5 @@ def site_settings(request): # pylint: disable=unused-argument "media_full_url": settings.MEDIA_FULL_URL, "preview_images_enabled": settings.ENABLE_PREVIEW_IMAGES, "request_protocol": request_protocol, + "js_cache": settings.JS_CACHE, } diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 9450ba81f..420d840a6 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -13,6 +13,8 @@ VERSION = "0.0.1" PAGE_LENGTH = env("PAGE_LENGTH", 15) DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English") +JS_CACHE = "19447742" + # email EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend") EMAIL_HOST = env("EMAIL_HOST") diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 6fa2e441a..fc94c7de8 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -325,5 +325,5 @@ {% endblock %} {% block scripts %} - + {% endblock %} diff --git a/bookwyrm/templates/feed/layout.html b/bookwyrm/templates/feed/layout.html index 746f4fd09..8d79781b3 100644 --- a/bookwyrm/templates/feed/layout.html +++ b/bookwyrm/templates/feed/layout.html @@ -106,5 +106,5 @@ {% endblock %} {% block scripts %} - + {% endblock %} diff --git a/bookwyrm/templates/import/import_status.html b/bookwyrm/templates/import/import_status.html index 94449f260..1c425af6e 100644 --- a/bookwyrm/templates/import/import_status.html +++ b/bookwyrm/templates/import/import_status.html @@ -156,5 +156,5 @@ {% endspaceless %}{% endblock %} {% block scripts %} - + {% endblock %} diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index ddcbeb580..1c8088164 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -255,9 +255,9 @@ var csrf_token = '{{ csrf_token }}'; - - - + + + {% block scripts %}{% endblock %}