Skip to content

arteria/django-copyright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-copyright

django-copyright keeps your site's copyright notice up-to-date. Forever and ever.

Installation

Install copyright from the PyPI using:

pip install django-copyright

Add copyright to your INSTALLED_APPS

INSTALLED_APPS = (

    'copyright',
)

set a COPY_START_YEAR in the django settings (this is an ingeter)

COPY_START_YEAR = 2009

to span a range.

Usage

Load copyrighttags in the template with {% load copyrighttags %}, afterwards place {% getCopyrightYears %} in the template, this will render a string like "2009 - 2012" or "2012" in case COPY_START_YEAR is not definied in your project settings.

About

Keep your site's copyright notice up-to-date. Forever and ever.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages