Skip to content
This repository

Simple Banner Rotation App for Django

branch: master


Banner Rotation App for Django.

  • Tracks clicks and views.
  • Supports the weight of the banner, banners with large weight are shown more often.
  • You can create ad campaigns.


Get the code via git:

git clone git:// django-banner-rotator

Add the django-banner-rotator/banner_rotator folder to your PYTHONPATH.

Edit to




Edit to

urlpatterns = patterns('',

    url(r'^banner_rotator/', include('banner_rotator.urls')),


Add the template:

{% load banners %}
{% banner place-slug %}


{% load banners %}
{% banner place-slug as banner %}
{% if banner %}
    <a href="{% url banner_click %}?place_slug=place-slug"><img src="{{ banner.file.url }}" alt=""/></a>
{% endif %}
Something went wrong with that request. Please try again.