Socket
Book a DemoInstallSign in
Socket

django-djcopyright

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-djcopyright

Django reusable app to show pretty formatted copyright years

0.17.0
pipPyPI
Maintainers
1

.. django-djcopyright .. README.rst

A django-djcopyright documentation

|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::

Installation

  • Obtain your copy of source code from the git repository: $ git clone https://github.com/vint21h/django-djcopyright.git. Or download the latest release from https://github.com/vint21h/django-djcopyright/tags/.
  • Run $ python ./setup.py install from the repository source tree or unpacked archive. Or use pip: $ pip install django-djcopyright.

Configuration

  • Add "djcopyright" to settings.INSTALLED_APPS.

.. code-block:: python

# settings.py

INSTALLED_APPS += [
    "djcopyright",
]

Settings

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.

Usage

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 }}

Contributing

  • Fork it <https://github.com/vint21h/django-djcopyright/>_
  • Install GNU Make <https://www.gnu.org/software/make/>_
  • Install and configure pyenv <https://github.com/pyenv/pyenv/>_ and pyenv-virtualenv plugin <https://github.com/pyenv/pyenv-virtualenv/>_
  • Install and configure direnv <https://github.com/direnv/direnv/>_
  • Create environment config from example

.. 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/>_

Licensing

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.

Contacts

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/

Keywords

django

FAQs

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.