.. _usage-templates:
Templates
=========
.. code-block:: django
{% load flickr_tags %}
Small photo linking to flickr page
.. code-block:: django
{% flickr_photo photo "small" 1 %}
Large photo without link
.. code-block:: django
{% flickr_photo photo "large" %}
Photos
-------
.. code-block:: django
:linenos:
{% load flickr_tags %}
Django-Flickr (Demo Page)
Photos
{% for photo in photo_list %}
- {% flickr_photo photo "small" 1 %}
{{ photo.description }}
- taken
- {{ photo.date_taken|date:"d.m.Y" }}
- tags
-
{% endfor %}
{% include "flickr/pagination.html" %}
Photosets
----------
.. code-block:: django
:linenos:
{% load flickr_tags %}
Photosets
Tags
-----
.. code-block:: django
:linenos:
{% load taggit_extras %}
Tags
{% get_taglist as tags for 'flickr' %}