This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Templatetag to render footer in Django admin.

Project Description

django-admin-footer provides a templatetag that renders a footer with version information in the Django admin.

Installation

Use pip to install the download and install the package from PyPi:

pip install django-admin-footer

Or checkout the source code from Github:

git clone https://github.com/collab-project/django-admin-footer.git
cd django-admin-footer
pip install -e .

Add admin_footer to INSTALLED_APPS in your Django project settings:

INSTALLED_APPS = (
    ...

    'admin_footer',
)

Usage

The ADMIN_FOOTER_DATA settings dict provides the data used in your footer. The default template expects the following template vars: site_url, site_name, period and version.

For example in settings.py:

from datetime import datetime
from myapp import version

ADMIN_FOOTER_DATA = {
  'site_url': 'https://www.google.com',
  'site_name': 'Google',
  'period': '{}'.format(datetime.now().year),
  'version': 'v{} - '.format(version)
}

Load the tag in your admin template (e.g. admin/base.html):

{% load footer %}

And add the admin_footer tag to the footer block:

{% block footer %}
{% admin_footer %}
{% endblock %}

You’ll now see a copyright link at the bottom of the admin pages. The version information is hidden for non-staff users.

Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_admin_footer-1.0.1-py2-none-any.whl (9.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Apr 19, 2016
django-admin-footer-1.0.1.tar.gz (6.6 kB) Copy SHA256 Checksum SHA256 Source Apr 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting