Skip to main content
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!

Simple banner system

Project Description

Django simple banner template tag

Link to repository: https://github.com/Arpaso/django-banner-simple

Provides new template tag to display banner uploaded via admin interface.

Banner model and BannerAdmin is added.

Usage

  • You have to use south migrations to update your database:

    python manage.py migrate
    

Note

Banner admin page is provided for adding banner through django admin interface

  • Add application to INSTALLED_APPS in settings.py:

    ...
    'banner',
    ...
    
  • Use template tag in your templates as is:

    {% get_banner 'banner_name' 150 150 %}
    

Note

get_banner(slug, width, height, queryset=Banner.objects.all())

Uses also settings.STATIC_URL to display banner image.

Written by the development team of Arpaso company: http://arpaso.com

Release History

Release History

This version
History Node

0.1

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-banner-simple-0.1.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Aug 9, 2013

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