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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc71a0f32d35db23ecd2b2903c9bf59f81394f069395ac22656ed0301f443e7b |
|
MD5 | 9378b2d882a49b468214f274ffb92c70 |
|
BLAKE2b-256 | 272bdfc822f08ff94f3bc3657322ad829aa257b4f26eefdf9949d0d342caca89 |
Close
Hashes for django_staticfiles_select2-3.3.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35f1bfd3e3fab6a02d7d8e7490d4d4b0e52f0012dc9f19911f61ea113514311 |
|
MD5 | 80bce67dc7edbeabac087c724da45ff3 |
|
BLAKE2b-256 | fee225e0d67c194cc502750412061da659853cbb4ec64ac0ea86e5e808300f9d |