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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1df83bd1711d14f62ee761326e0eed5305c300a01ec6e5582ef7519fa09999 |
|
MD5 | faee64b02ba13f6bcfe7638aa02ada4c |
|
BLAKE2b-256 | 838097e64b3ae3bc2c5f9a9260d65745bd5edc9ae9bcd8c8f04ea004cdff56e5 |
Close
Hashes for django_staticfiles_select2-3.4.4-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb78de5e731d7dcd24b073cce693b0f67ff7ee050de5b6d533326054ad77433 |
|
MD5 | 19efb9bcc52193f8d8c82d63ef846673 |
|
BLAKE2b-256 | 8678eb213f34ad9cdc2cfd6525dcbd45526126dd774d97c0846e57978c0081ef |