Switch to local static copies of bootstrap JS/CSS

This commit is contained in:
Adam Goldsmith 2023-01-20 21:22:43 -05:00
parent 3acfaaa19f
commit a7544e4c61
4 changed files with 18 additions and 5 deletions

View File

@ -94,6 +94,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/ # https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = "/static/" STATIC_URL = "/static/"
STATICFILES_DIRS = [BASE_DIR / "static"]
WIKI_URL = "https://wiki.claremontmakerspace.org" WIKI_URL = "https://wiki.claremontmakerspace.org"

7
static/bootstrap.bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long

7
static/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
{% load static %}
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
@ -5,10 +6,7 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"> content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --> <!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" <link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">
rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx"
crossorigin="anonymous">
<title> <title>
{% block title %}Claremont MakerSpace{% endblock %} {% block title %}Claremont MakerSpace{% endblock %}
</title> </title>
@ -66,6 +64,6 @@
</div> </div>
{% block footer %}{% endblock %} {% block footer %}{% endblock %}
<!-- Bootstrap JS --> <!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> <script src="{% static 'bootstrap.bundle.min.js' %}"></script>
</body> </body>
</html> </html>