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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-staticfiles-select2-3.4.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b433c8933345e3600316ad5041a3c599c9071237033b321f42e983157bb94c |
|
MD5 | 0180a00ce39d495f9e564e695fb22f4e |
|
BLAKE2b-256 | d51ac80b205b9456a6d4b32137c1145e6d161ed782aef3c2f4a68c0e15ded65d |
Close
Hashes for django_staticfiles_select2-3.4.5-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1aba91dbe41d945664d7aba528f78594c24754ef20fcb1a35abef193ddf3f00 |
|
MD5 | 57d354609f18dac4ecd5f84e42c7ceb4 |
|
BLAKE2b-256 | e5555f344fc6096d44d35955e39ed8b2f110d136be1d5f82ff780dab891b9b17 |