https://github.com/agusmakmun/common-tags
Common templatetags provides for Django
https://github.com/agusmakmun/common-tags
common-tags django django-templates django-templatetags templatetags
Last synced: 4 months ago
JSON representation
Common templatetags provides for Django
- Host: GitHub
- URL: https://github.com/agusmakmun/common-tags
- Owner: agusmakmun
- License: mit
- Created: 2017-02-15T08:11:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T07:24:35.000Z (over 6 years ago)
- Last Synced: 2025-02-01T17:05:48.152Z (5 months ago)
- Topics: common-tags, django, django-templates, django-templatetags, templatetags
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
common-tags |pypi version|
------------------------------.. |pypi version|
image:: https://img.shields.io/pypi/v/common-tags.svg?style=flat-square
:target: https://pypi.python.org/pypi/common-tags.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
:target: https://raw.githubusercontent.com/agusmakmun/common-tags/master/LICENSE.. image:: https://img.shields.io/pypi/pyversions/common-tags.svg?style=flat-square
:target: https://pypi.python.org/pypi/common-tags.. image:: https://img.shields.io/badge/Django-1.8,%201.9,%201.10-green.svg?style=flat-square
:target: https://www.djangoproject.comCommon templatetags provides for Django.
Installation
------------------------------Common Tags is available directly from `PyPI`_:
1. Installing the package.
::
$ pip install common-tags
2. Don't forget to add ``'common'`` to your ``'INSTALLED_APPS'`` setting `(without migrations)`.
::
# settings.py
INSTALLED_APPS = [
....
'common',
]Usage in template
------------------------------::
{% load common_tags %}
For complete usage, see `common/templatetags/common_tags.py`_
Contributing
------------------------------Feel free to `open a bug`_ or `contribute to code`_ !
.. _PyPI: https://pypi.python.org/pypi/common-tags
.. _common/templatetags/common_tags.py: https://github.com/agusmakmun/common-tags/blob/master/common/templatetags/common_tags.py
.. _open a bug: https://github.com/agusmakmun/common-tags/issues
.. _contribute to code: https://github.com/agusmakmun/common-tags/pulls