django-select2 is a Django integration of Select2.
The app includes Select2 driven Django Widgets and Form Fields.
1. Install django_select2
pip install django_select2
2. Add django_select2 to your INSTALLED_APPS in your project settings.
3. When deploying on production server, run :-
python manage.py collectstatic
More details can be found on my blog at - http://blog.applegrew.com/2012/08/django-select2/.
Please checkout testapp application. This application is used to manually test the functionalities of this component. This also serves as a good example.
You need only Django 1.4 or above to run that.
What's New in This Release: [ read full changelog ]
· Main version number bumped to bring your attention to the fact that the default Id generation scheme has now changed. Now Django Select2 will use hashed paths of fields to generate their Ids. The old scheme of generating random Ids are still there. You can enable that by setting GENERATE_RANDOM_SELECT2_ID to True.