Skip to main content

select2 meets Django staticfiles

Project description

Introducing select2 to Django!

Usage

This application is meant to be used with django-staticfiles. Make sure that staticfiles setup and configured, then install this application using pip:

pip install django-staticfiles-select2

Finally, make sure that select2 is listed in your INSTALLED_APPS. You can use this oneliner to add it as well:

INSTALLED_APPS += ['staticfiles_select2', ]

Then in your template code you can do this:

<link rel="stylesheet" href="{{ STATIC_URL }}staticfiles_select2/select2/select2.css">

and:

<script type="text/javascript" src="{{ STATIC_URL }}staticfiles_select2/select2/select2.min.js"></script>

Inspiration

Most part of this project are stolen from django-staticfiles-jquery.

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

django-staticfiles-select2-3.4.5.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

django_staticfiles_select2-3.4.5-py27-none-any.whl (91.8 kB view details)

Uploaded Python 2.7

File details

Details for the file django-staticfiles-select2-3.4.5.tar.gz.

File metadata

File hashes

Hashes for django-staticfiles-select2-3.4.5.tar.gz
Algorithm Hash digest
SHA256 47b433c8933345e3600316ad5041a3c599c9071237033b321f42e983157bb94c
MD5 0180a00ce39d495f9e564e695fb22f4e
BLAKE2b-256 d51ac80b205b9456a6d4b32137c1145e6d161ed782aef3c2f4a68c0e15ded65d

See more details on using hashes here.

File details

Details for the file django_staticfiles_select2-3.4.5-py27-none-any.whl.

File metadata

File hashes

Hashes for django_staticfiles_select2-3.4.5-py27-none-any.whl
Algorithm Hash digest
SHA256 d1aba91dbe41d945664d7aba528f78594c24754ef20fcb1a35abef193ddf3f00
MD5 57d354609f18dac4ecd5f84e42c7ceb4
BLAKE2b-256 e5555f344fc6096d44d35955e39ed8b2f110d136be1d5f82ff780dab891b9b17

See more details on using hashes here.

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