Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple app for displaying testimonials and quotes
Python
branch: master

This branch is 10 commits ahead of davemerwin:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
quotes
.gitignore
AUTHORS
LICENSE
README.rst

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.

Settings

You can specify a QUOTES_IMAGE_DIR setting, which will be piped into the upload_to option of the image field, allowing you to customize where your images should be saved. This can be relative to the MEDIA_URL setting.

Something went wrong with that request. Please try again.