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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 648944e59bfe19d72d88804d1a42f18e64b2bdaa5605fba6c253ec57a1deab16 |
|
MD5 | 7399c6d4591731189bc0ad20c1dbb8da |
|
BLAKE2b-256 | e157df7257d2f9820d886c8250627351b5ace7aa920360b13ab52777b613d108 |
Close
Hashes for django_staticfiles_select2-3.4.1-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374518b5b5dd1c684672bb5d1d301c59943df8ff3c50e8a6ba6e512c73cfbaee |
|
MD5 | 168466d90882525399cd2d6df5c3c1ae |
|
BLAKE2b-256 | 45edde97659132ad0130671f7a1a8987c1abfd81044154d7ba703f7735f2dd8c |