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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805aa31f69203b533ff7aa4d77f2f50bc0de1eb98b98712584af8394cf1afabc |
|
MD5 | f27927e133d77402557c095e3237c3a9 |
|
BLAKE2b-256 | ec015f3217cd23b04e652a506f217a922117758a64892a7b672e16d52d60c828 |
Close
Hashes for django_staticfiles_select2-3.4.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c976efa0f0da3b81214b337aa94371bc0861c532e74df9b15604b752cdb998f7 |
|
MD5 | ce699064921969ee6b4305e93dea27fa |
|
BLAKE2b-256 | be519c7fa72955f011f469f24b8cf31cb704ec651dcb5e19ad3501f83001a6fb |