django-staticfiles-select2-3.4.5
توضیحات
select2 meets Django staticfiles
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-staticfiles-select2-3.4.5 |
| نام | django-staticfiles-select2 |
| نسخه کتابخانه | 3.4.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Slawek Ehlert |
| ایمیل نویسنده | slafs@op.pl |
| آدرس صفحه اصلی | http://bitbucket.org/slafs/django-staticfiles-select2/ |
| آدرس اینترنتی | https://pypi.org/project/django-staticfiles-select2/ |
| مجوز | UNKNOWN |
django-staticfiles-select2
==========================
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`_.
.. _django-staticfiles-jquery: https://github.com/tswicegood/django-staticfiles-jquery
.. _django-staticfiles: https://github.com/jezdez/django-staticfiles
.. _pip: http://www.pip-installer.org/
.. _select2: https://github.com/ivaynberg/select2
نحوه نصب
نصب پکیج whl django-staticfiles-select2-3.4.5:
pip install django-staticfiles-select2-3.4.5.whl
نصب پکیج tar.gz django-staticfiles-select2-3.4.5:
pip install django-staticfiles-select2-3.4.5.tar.gz