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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeed62605178d31ba4cc8b504f35b739b34a0754ff88a92ab735461fd6d4f054 |
|
MD5 | 285e2a80e4ac61873eb32295352c3360 |
|
BLAKE2b-256 | 32923cc8782e18aaa0ccff6f67cb741577b10d87af736cf346a09f6c3a243615 |
Close
Hashes for django_staticfiles_select2-3.3.1-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036ae69097fc2a2f9e528a0e24015eb9d4d3e40f682cc296ca3c7f18536db3f3 |
|
MD5 | 495743b5e5559c78f82f1ababe581f22 |
|
BLAKE2b-256 | 802183c3da7d34c884190e207334e49ead37cde482ba56255f7b0ce32afa3f4f |