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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cde9225d3d3410eff96c2ba18bdad4678777ca663606e5ab15308c00e0b8e2db |
|
MD5 | 5be8fde78dc2d8bbcd96b58c19eed996 |
|
BLAKE2b-256 | 4fd2c24defc59eac112a400b5223a767f9b7c041dd7d4352d8ac34782e900bfe |
Close
Hashes for django_staticfiles_select2-3.3.2-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de24998a84403f187fe9ee8ad5017fc271c2e2f98192d615b94dc9356226f84 |
|
MD5 | 3a450aef90940018751701d835858196 |
|
BLAKE2b-256 | 43ca461cc8e13abc8d3e87adc1ae496bad4d92cc14bc911136047209d67a2c43 |