In Loki We Trust The many projects of Lokkju, Inc


Making jQuery-UI work in the Django Admin

Problem: Django's Admin moves the jQuery namespace into a custom one, django.jQuery, to prevent conflicts. But what if you want to use the provided jQuery, with jQuery-UI? jQuery-UI, and many other jQuery plugins, expect there to be a "jQuery" namespace.

Quick Fix - lets move it back to the jQuery namespace:

<script>(function($){jQuery = $.noConflict(true);})(django.jQuery);</script>
<script type="text/javascript" src=""></script>

And that's it!

Filed under: Uncategorized 2 Comments

I’m back…

Well, I finally got around to restoring the blog after all this downtime. Hopefully I can start putting up more code here soon - I have a large backlog of small projects to post about.

Filed under: Uncategorized No Comments