[Python-modules-commits] [django-guardian] 13/14: Use local js files.
Brian May
bam at moszumanska.debian.org
Sat Nov 14 03:27:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository django-guardian.
commit 7361b9c49e539c5959df0b28542733ab9f733c1c
Author: Brian May <bam at debian.org>
Date: Sat Nov 14 14:02:06 2015 +1100
Use local js files.
---
docs/theme/rtd_theme/layout.html | 2 +-
example_project/templates/base.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/theme/rtd_theme/layout.html b/docs/theme/rtd_theme/layout.html
index 87337a9..57ad31c 100644
--- a/docs/theme/rtd_theme/layout.html
+++ b/docs/theme/rtd_theme/layout.html
@@ -85,7 +85,7 @@
{%- endblock %}
{%- block extrahead %} {% endblock %}
- <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
+ <script src="{{ pathto('_static/modernizr.min.js', 1) }}"></script>
</head>
diff --git a/example_project/templates/base.html b/example_project/templates/base.html
index 9b774de..e3eda3a 100644
--- a/example_project/templates/base.html
+++ b/example_project/templates/base.html
@@ -50,7 +50,7 @@
</div>
{% endblock %}
</div>
- <script src="http://code.jquery.com/jquery.js"></script>
+ <script src="{{ STATIC_URL }}js/jquery.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
</body>
</html>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-guardian.git
More information about the Python-modules-commits
mailing list