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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74087329f8e55a52c76d3585a8f8fae90c47945b62ca5e900093e6a0db88ae81 |
|
MD5 | 444409e4d18236881f834384f6904f4b |
|
BLAKE2b-256 | da02aeab1a7684e7d2b8f5b713ae8d8a7c022a15e170cbfb951490c1d0e9bf7a |
Close
Hashes for django_staticfiles_select2-3.4.2-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed7f9f9a7d427cb74e03fb85a13c6126a5e57d9efc6e24ac75e515b6f7ea283 |
|
MD5 | c5b9431ebc18c2936047f0ec8b7bf777 |
|
BLAKE2b-256 | a366a22d11cde0ce16877240e38e844f65e1a83862ec10d6ebf128131c9bffb6 |