Gist 8784016
✓ Published0🌍 Public
Aandybak
Last edited Feb 3, 2014
Created on Feb 3, 2014
This example shows how to extend Django’s admin interface with custom JavaScript files using the `django_admin_blocks` library. It registers a configuration object that defines a `script_blocks` list, specifying two client-side resources: `js/jQuery.cookies.js` and `js/cms_admin.js`. The code relies on the `django_admin_blocks.register()` API to inject these scripts into the admin’s HTML output. The data source is the explicit URL paths in the list, and the rendering approach is the library’s block-based script loading mechanism.
AI-generated description