1

Like the title says, Im trying to bump my jQuery version up to 1.5+ (so that I can get past an issue with django-markitup AJAX call VS django's CSRF protection).

Looking at the contrib.admin.templates.base.html I see that JavaScript gets included dynamically, not im not sure how/where to add this and how to do so without breaking things going forward.

Ben Keating
  • 8,206
  • 9
  • 37
  • 37
  • I discovered that Im using a Django App that has inserted a Google JavaScript API URI, pointing to jQuery1.4. I thought this was part of Django's contrib.admin app but I grepped my virtualenv directory and discovered that ``django-markitup`` was loading this Google-based JS resource which I can override in my ``settings.py`` with a simple ``JQUERY_URL = 'http://...'``. – Ben Keating May 25 '11 at 23:15
  • Related: http://stackoverflow.com/questions/8945831/how-can-i-update-jquery-version-in-django-admin – Paolo Jun 14 '12 at 20:46

1 Answers1

0

Default js files are in django/contrib/admin/media/js (jquery,...).

You can also change the admin media files location (Django: serving ADMIN media files) and use whatever version of jquery you like (it's better to keep default django files untouched).

Community
  • 1
  • 1
manji
  • 47,442
  • 5
  • 96
  • 103