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 Thu May 07 14:36:15 -0700 2009 Added a short README, License and Authors file. [Martin Mahner]
file MANIFEST.in Thu May 07 14:43:15 -0700 2009 Added release stuff, yay [Jannis Leidel]
file README.rst Thu May 07 14:36:15 -0700 2009 Added a short README, License and Authors file. [Martin Mahner]
directory attachments/ Thu May 07 14:29:55 -0700 2009 Initial structure and data [Martin Mahner]
file setup.py Thu May 07 17:02:25 -0700 2009 Added fraking setup.py [Jannis Leidel]
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 %}