Django Quotes is a simple way to place random quotes in a website. Currently the quotes are stored in the app.
- Simple Quotes model
- Template tag for pulling Quotes into templates
- Add the
quotesdirectory to your Python path. - Add
quotesto yourINSTALLED_APPS. - Run the command
manage.py syncdbto install the models.
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.