开发者

Django 1.3 - How do I update contrib.admin to use jQuery 1.5+ (It's currently 1.4)

Like the title says, Im trying to bump my jQuery version up to 1.5+ (so that I can get past an is开发者_运维百科sue 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.


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜