Skip to content

Commit 94db2f0

Browse files
committed
rm JQUERY_URL setting
1 parent f7fafff commit 94db2f0

File tree

5 files changed

+1
-20
lines changed

5 files changed

+1
-20
lines changed

debug_toolbar/settings.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# Toolbar options
1818
'DISABLE_PANELS': {'debug_toolbar.panels.redirects.RedirectsPanel'},
1919
'INSERT_BEFORE': '</body>',
20-
'JQUERY_URL': '//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js',
2120
'RENDER_PANELS': None,
2221
'RESULTS_CACHE_SIZE': 10,
2322
'ROOT_TAG_EXTRA_ATTRS': '',

debug_toolbar/static/debug_toolbar/js/jquery_existing.js

-1
This file was deleted.

debug_toolbar/templates/debug_toolbar/base.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
{% load i18n %}{% load static %}
22
<link rel="stylesheet" href="{% static 'debug_toolbar/css/print.css' %}" type="text/css" media="print">
33
<link rel="stylesheet" href="{% static 'debug_toolbar/css/toolbar.css' %}" type="text/css">
4-
{% if toolbar.config.JQUERY_URL %}
5-
<!-- Prevent our copy of jQuery from registering as an AMD module on sites that use RequireJS. -->
64
<script src="{% static 'debug_toolbar/js/jquery_pre.js' %}"></script>
7-
<script src="{{ toolbar.config.JQUERY_URL }}"></script>
5+
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
86
<script src="{% static 'debug_toolbar/js/jquery_post.js' %}"></script>
9-
{% else %}
10-
<script src="{% static 'debug_toolbar/js/jquery_existing.js' %}"></script>
11-
{% endif %}
127
<script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script>
138
<div id="djDebug" class="djdt-hidden" dir="ltr"
149
{% if toolbar.store_id %}

docs/configuration.rst

-8
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ Toolbar options
6464
The toolbar searches for this string in the HTML and inserts itself just
6565
before.
6666

67-
* ``JQUERY_URL``
68-
69-
Default: ``'//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'``
70-
71-
URL of the copy of jQuery that will be used by the toolbar. Set it to a
72-
locally-hosted version of jQuery for offline development. Make it empty to
73-
rely on a version of jQuery that already exists on every page of your site.
74-
7567
* ``RENDER_PANELS``
7668

7769
Default: ``None``

docs/tips.rst

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ The Debug Toolbar loads the jQuery_ library from the Google Hosted Libraries
3232
CDN. Your browser will keep it in cache, allowing you to use the toolbar even
3333
if you disconnect from the Internet temporarily.
3434

35-
If you want to use the Debug Toolbar without an Internet connection at all, or
36-
if you refuse to depend on Google's services, look at the ``JQUERY_URL``
37-
configuration option.
38-
3935
.. _jQuery: https://jquery.com/
4036

4137
Performance considerations

0 commit comments

Comments
 (0)