https://github.com/davidar/django-quotes
Django template tag that displays a random quote
https://github.com/davidar/django-quotes
Last synced: 12 months ago
JSON representation
Django template tag that displays a random quote
- Host: GitHub
- URL: https://github.com/davidar/django-quotes
- Owner: davidar
- License: agpl-3.0
- Created: 2009-09-25T09:40:20.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-09-25T10:06:32.000Z (over 16 years ago)
- Last Synced: 2025-04-04T14:14:39.017Z (about 1 year ago)
- Language: Python
- Homepage: http://da.vidr.cc/
- Size: 85.9 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
USAGE
Copy the quotes/ directory to somewhere in your PYTHONPATH, and add
"quotes" to INSTALLED_APPS in settings.py.
You will also need to create a file named quotes_config.py in your path. This
file should contain a list/tuple named quotes, which contains tuples of the
form (quote as a unicode object, author, reference url), e.g.:
quotes = (
(u'INSUFFICIENT DATA FOR MEANINGFUL ANSWER', 'Multivac',
'http://multivax.com/last_question.html'),
...
)
Then, place the following code where the tag should be displayed:
{% load quotes %} {% random_quote %}
Author Homepage: http://da.vidr.cc/