public
Description: A simple app for displaying testimonials and quotes
Homepage:
Clone URL: git://github.com/davemerwin/django-quotes.git
name age message
file .gitignore Sun Mar 01 11:30:07 -0800 2009 initial creation of django quotes [davemerwin]
file AUTHORS Sun Mar 01 11:30:07 -0800 2009 initial creation of django quotes [davemerwin]
file LICENSE Sun Mar 01 11:48:53 -0800 2009 fix for bugs in admin.py [davemerwin]
file README.rst Sun Mar 01 11:30:07 -0800 2009 initial creation of django quotes [davemerwin]
directory quotes/ Sun Mar 01 13:07:40 -0800 2009 Fix for allowing for empty database [davemerwin]
README.rst

Django Quotes

Django Quotes is a simple way to place random quotes in a website. Currently the quotes are stored in the app.

Features

  • Simple Quotes model
  • Template tag for pulling Quotes into templates

Installation

  1. Add the quotes directory to your Python path.
  2. Add quotes to your INSTALLED_APPS.
  3. Run the command manage.py syncdb to install the models.

Usage

Once content is available in the quotes model, it can be accessed via the templates using the provided template tags:

{% load quote_tags %}
<div class="hello">
    {% show_random_quote %}
</div>

The above will gather the quotes from the model and then randomly display them one at a time.