
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
.. django-djcopyright .. README.rst
|GitHub|_ |Coveralls|_ |pypi-license|_ |pypi-version|_ |pypi-python-version|_ |pypi-django-version|_ |pypi-format|_ |pypi-wheel|_ |pypi-status|_
*django-djcopyright is a Django reusable application to show pretty formatted copyright years*
.. contents::
$ git clone https://github.com/vint21h/django-djcopyright.git
. Or download the latest release from https://github.com/vint21h/django-djcopyright/tags/.$ python ./setup.py install
from the repository source tree or unpacked archive. Or use pip: $ pip install django-djcopyright
."djcopyright"
to settings.INSTALLED_APPS
... code-block:: python
# settings.py
INSTALLED_APPS += [
"djcopyright",
]
DJCOPYRIGHT_START_YEAR
Contains year to start show copyright from. Defaults to 1970
.
DJCOPYRIGHT_FORMAT_STRING
Contains format string to show copyright. Defaults to "{start_year} - {current_year}"
.
DJCOPYRIGHT_SHOW_CURRENT_YEAR
Show current year in copyright string. Defaults to True
.
DJCOPYRIGHT_SHOW_START_YEAR
Show start year in copyright string. Defaults to True
.
If you want always have "COPYRIGHT_YEARS"
variable in templates context, just add "djcopyright.context_processors.djcopyright_years"
to settings.TEMPLATE_CONTEXT_PROCESSORS
.. code-block:: python
# settings.py
TEMPLATE_CONTEXT_PROCESSORS += [
"djcopyright.context_processors.djcopyright_years",
]
Else you can use djcopyright_years
templatetag which can be loaded from djcopyright_tags
.
.. code-block:: django
{# footer.html #}
{% load djcopyright_tags %}
{% djcopyright_years as COPYRIGHT_YEARS %}
{{ COPYRIGHT_YEARS }}
Fork it <https://github.com/vint21h/django-djcopyright/>
_GNU Make <https://www.gnu.org/software/make/>
_pyenv <https://github.com/pyenv/pyenv/>
_ and pyenv-virtualenv plugin <https://github.com/pyenv/pyenv-virtualenv/>
_direnv <https://github.com/direnv/direnv/>
_.. code-block:: bash
cp .env.example .env
6. Install development dependencies:
.. code-block:: bash
make install
7. Create your fix/feature branch:
.. code-block:: bash
git checkout -b my-new-fix-or-feature
8. Check code style and moreover:
.. code-block:: bash
make check
9. Run tests:
.. code-block:: bash
make test
10. Push to the branch:
.. code-block:: bash
git push origin my-new-fix-or-feature
11. Create a new Pull Request <https://github.com/vint21h/django-djcopyright/compare/>
_
django-djcopyright is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. For complete license text see COPYING file.
Project Website: https://github.com/vint21h/django-djcopyright/
Author: Alexei Andrushievich vint21h@vint21h.pp.ua
For other authors list see AUTHORS file.
.. |GitHub| image:: https://github.com/vint21h/django-djcopyright/workflows/build/badge.svg :alt: GitHub .. |Coveralls| image:: https://coveralls.io/repos/github/vint21h/django-djcopyright/badge.svg?branch=master :alt: Coveralls .. |pypi-license| image:: https://img.shields.io/pypi/l/django-djcopyright :alt: License .. |pypi-version| image:: https://img.shields.io/pypi/v/django-djcopyright :alt: Version .. |pypi-django-version| image:: https://img.shields.io/pypi/djversions/django-djcopyright :alt: Supported Django version .. |pypi-python-version| image:: https://img.shields.io/pypi/pyversions/django-djcopyright :alt: Supported Python version .. |pypi-format| image:: https://img.shields.io/pypi/format/django-djcopyright :alt: Package format .. |pypi-wheel| image:: https://img.shields.io/pypi/wheel/django-djcopyright :alt: Python wheel support .. |pypi-status| image:: https://img.shields.io/pypi/status/django-djcopyright :alt: Package status .. _GitHub: https://github.com/vint21h/django-djcopyright/actions/ .. _Coveralls: https://coveralls.io/github/vint21h/django-djcopyright?branch=master .. _pypi-license: https://pypi.org/project/django-djcopyright/ .. _pypi-version: https://pypi.org/project/django-djcopyright/ .. _pypi-django-version: https://pypi.org/project/django-djcopyright/ .. _pypi-python-version: https://pypi.org/project/django-djcopyright/ .. _pypi-format: https://pypi.org/project/django-djcopyright/ .. _pypi-wheel: https://pypi.org/project/django-djcopyright/ .. _pypi-status: https://pypi.org/project/django-djcopyright/
FAQs
Django reusable app to show pretty formatted copyright years
We found that django-djcopyright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.