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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a36d4a7123b375f275ee919c2756e5db45980532b3367cdd0131161b99d7671 |
|
MD5 | cad3239b5dedca0a28d2d31be8043d68 |
|
BLAKE2b-256 | a487f556181da6eeb476efe813c622893d0fee03c10cd26123ba8d2f1a65a253 |
Close
Hashes for django_staticfiles_select2-3.4.3-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601c316692662b90d82d086d4335887e61e48f915492c1ef200e83895493947b |
|
MD5 | 4488babcb0636353cd845a650c87ba3c |
|
BLAKE2b-256 | 2d3918d6e4e16e198bbf8e25ffcf46feac9e77dbe4097313ad8eadc776d0f8a2 |