Debian packaging for django-select2
Go to file
Frédéric Péters 5802daf456 misc: remove usage of django.utils.six (#68920) 2022-09-11 10:31:08 +02:00
debian debian: use debhelper compat level 12 2021-12-12 14:51:52 +01:00
django_select2 misc: remove usage of django.utils.six (#68920) 2022-09-11 10:31:08 +02:00
docs Chained select2 2017-04-18 10:57:33 +02:00
tests Chained select2 2017-04-18 10:57:33 +02:00
.gitignore Add support for Django 1.11 2017-04-14 14:09:23 +02:00
.travis.yml Add support for Django 1.11 2017-04-14 14:09:23 +02:00
CHANGELOG.md Chained select2 2017-04-18 10:57:33 +02:00
LICENSE.txt v3.1.5 2012-12-18 09:54:55 +05:30
MANIFEST.in MANIFEST.in: include himself 2017-06-11 14:35:04 +02:00
README.md Doc link's domain name updated 2016-04-28 13:12:16 +05:30
requirements-dev.in Update test suite 2016-12-28 21:02:32 +01:00
requirements-dev.txt Update selenium from 3.3.1 to 3.3.3 2017-04-07 15:02:11 +02:00
setup.cfg Fix pytest config 2017-02-21 15:07:19 +01:00
setup.py Add support for Django 1.11 2017-04-14 14:09:23 +02:00
tox.ini Add support for Django 1.11 2017-04-14 14:09:23 +02:00

README.md

Django-Select2

PyPi Version Build Status Test Coverage GitHub license Join the chat at https://gitter.im/applegrew/django-select2

This is a Django integration of Select2.

The app includes Select2 driven Django Widgets.

Installation

  1. Install django_select2

     pip install django_select2
    
  2. Add django_select2 to your INSTALLED_APPS in your project settings.

  3. Add django_select to your urlconf if you use any 'Auto' fields.

     url(r'^select2/', include('django_select2.urls')),
    

Upgrade from Version 4

Version 5 is a complete rewrite of the package to drastically reduce the code base and to ensure a future maintainability.

While we feature set remained unchanged, the API changed completely. Major changes:

  • Fields have been removed in favor of widgets.
  • All version 4 settings have been removed.
  • Template tags have been removed.
  • 3rd party javascript is served by a CDN.
  • No more inline javascript code.

Upgrade can be done in 5 simple steps:

  1. Remove all existing and to setup the new cache backend.
  2. Remove the old template tags from your templates:
  3. import_django_select2_js
  4. import_django_select2_css
  5. import_django_select2_js_css
  6. Add form.media.css to the top and form.media.js to the bottom of your base template.
  7. Upgrade to jQuery version 2, if you are still running version 1.
  8. Replace old fields with new widgets.

Documentation

Documentation available at http://django-select2.readthedocs.io/.

External Dependencies

  • jQuery version 2 This is not included in the package since it is expected that in most scenarios this would already be available.

Example Application

Please see tests/testapp application. This application is used to manually test the functionalities of this package. This also serves as a good example.

Special Thanks

  • Samuel Goldszmidt (@ouhouhsami) for reporting many fundamental issues with the code, because of which versions 2.0 and 2.0.1 were released.

Official Contributors

  • Johannes Hoppe (@codingjoe)

Changelog

See CHANGELOG.md

License

Copyright 2012 Nirupam Biswas

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.