3. ConfigurationΒΆ
django-easy-select2 bundles jQuery and Select2 static files.
You can use them, or specify your own files to include in widget.
To use bundled static, just install an application.
To use your custom static files, you can specify next settings in your settings.py:
SELECT2_JS- path toselect2.jsfile. Specify path without static directory, because full URL will be interpolated usingstaticfunction fromstaticfilesapplication. Default:easy_select2/vendor/select2/select2.min.jsSELECT2_CSS- path toselect2.cssfile. Default:easy_select2/vendor/select2/select2.min.cssSELECT2_USE_BUNDLED_JQUERY- default isTrue. Set toFalseif you want to use jQuery of Django Admin, instead.SELECT2_USE_BUNDLED_SELECT2- default isTrue. Set toFalseif you want to use Select2 of Django Admin, instead.