【发布时间】:2011-06-11 10:53:21
【问题描述】:
没有指定任何内容,Django 1.2.4 管理模板包括 jQuery 1.4.2。我刚刚下载了 1.4.4 附带的 jQuery UI 框架。因此,我想使用 1.4.4 的 UI 框架。但是,我不确定如何从 Django 管理模板中删除它。在这种情况下我该怎么办?
class FooAdmin(admin.ModelAdmin):
class Media:
# this will cause both jQuery 1.4.2 and 1.4.4 to be included. Not sure if that's a problem or not.
js = ("js/foo.js", "js/lib/jquery-1.4.4.min.js", "js/lib/jquery-ui-1.8.8.custom.min.js")
admin.site.register(Foo, FooAdmin)
【问题讨论】:
标签: javascript jquery django django-admin