Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Latest commit

 

History

History
32 lines (20 loc) · 572 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 572 Bytes

django-slider

slider module for django

Requirement:

Django 1.3+ easy_thumbnails

Instalation:

Add in your INSTALL_APPS : 'slider'

Syncdb to creat slider model

exemple:

In your page.html :

{% load slider_tags %}

{% get_slider_images as images [limit=False randomize=True slider=1] %}
{% for image in images %}
<li><img src="{{MEDIA_URL}}{{image.image }}"></li>
{% endfor %}

if you want to use use the default javascripte lib (galleria) just copy/past the slider/template/slider/slider.html