jezdez / django-attachments forked from bartTC/django-attachments

A generic Django application to attach Files (Attachments) to any model.

This URL has Read+Write access

name age message
file AUTHORS Thu May 07 14:43:15 -0700 2009 Added release stuff, yay [Jannis Leidel]
file LICENSE Loading commit data...
file MANIFEST.in Thu May 07 14:43:15 -0700 2009 Added release stuff, yay [Jannis Leidel]
file README.rst
directory attachments/
file setup.py
README.rst

django-attachments

django-attachments is a generic set of template tags to attach any kind of files to any models.

Quick Example: ==============:

{% load attachments_tags %}
{% get_attachments_for entry as "my_wiki_attachments" %}

{% if my_wiki_attachments %}
<ul>
{% for attachment in my_wiki_attachments %}
    <li>
        <a href="{{ attachment.attachment_file.url }}">{{ attachment.filename }}</a>
        {% attachment_delete_link attachment %}
    </li>
{% endfor %}
</ul>
{% endif %}

{% attachment_form entry %}