django-bootstrap-carousel is a carousel component using Bootstrap 3 for Django.
You can using pip or easy_install to install django-bootstrap-carousel app.
Add app to your Django settings.py:
INSTALLED_APPS = (
# Other apps here.
'django_bootstrap_carousel'
)
Create your carousel and carousel item in the Django admin app.
Get carouse object in your view and put it to the context:
def my_view(request): ## Your code here. carousel = Carousel.objects.get(pk=1) return render_to_response( 'my_view.html', { 'carousel': carousel, }, context_instance=RequestContext(request) )In your template, load the
bootstrap_carousel_tagstemplate tags first:{% load bootstrap_carousel_tags %}Using the
render_carouseltemplate tag, like:{% render_carousel carousel %}