Skip to main content

Override select2js files in APIS Django projects

Project description

Override select2js files in APIS Django projects

This is a minimal Django project that ships 2 files that are originally part of Django Autocomplete Light. The two files are patched, so that they fix a behaviour with the tags option of the select implementation in Django Autocomplete Light. See also this bug report upstream. The exact changes are documented in contrib/patches.

If you want to override the upstream shipped javascript files, you will have install this Django project and add apis_override_select2js to the beginning of your Django settings INSTALLED_APPS.

You will get a warning from Django when doing the collectstatic step:

Found another file with the destination path
'autocomplete_light/select2.min.js'. It will be ignored since only the first
encountered file is collected. If this is not what you want, make sure every
static file has a unique path.
Found another file with the destination path 'autocomplete_light/select2.js'.
It will be ignored since only the first encountered file is collected. If this
is not what you want, make sure every static file has a unique path.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apis_override_select2js-0.2.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

apis_override_select2js-0.2.1-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page