django attachments
Details
| Last Update: | 2009-06-06 07:19:27 |
| Version: | django-attachmen |
| License/Program Type: | Free |
| Publisher: | Martin Mahner |
| Price: | $0.00 |
Description:
django-attachments is a generic set of template tags for the Django framework to attach any kind of files to models.
Installattion:
Put attachments to your INSTALLED_APPS in your settings.py within your django project. This app provides a additional permission delete_foreign_attachments which enables that users with it can delete foreign attachments. Normally only users who uploaded the attachment, can delete it.
Usage:
In contrib.admin:
django-attachments provides a inline object to add a list of attachments to any kind of model in your admin app.
Simply add AttachmentInlines to the admin options of your model. Example:
from django.contrib import admin
from attachments.admin import AttachmentInlines
class MyEntryOptions(admin.ModelAdmin)
inlines = [AttachmentInlines]
In your frontend templates:
django-attachments comes with some templatetags to add or delete attachments for your model objects in your frontend.
1. ``get_attachments_for [object]``: Fetches the attachments for the given model instance. You can optionally define a variable name in which the attachment list is stored in the template context. The default context variable name is attachments Example:
{% get_attachments_for entry as "attachments_list" %}
2. ``attachment_form``: Renders a upload form to add attachments for the given model instance. Example:
{% attachment_form [object] %}
It returns an empty string if the current user is not logged in.
3. ``attachment_delete_link``: Renders a link to the delete view for the given attachment. Example:
{% for att in attachment_list %}
{{ att }} {% attachment_delete_link att %}
{% endfor %}
This tag automatically checks for permission. It returns only a html link if the give n attachment's creator is the current logged in user or the user has the delete_foreign_attachments permission.
Requirements:
Python
Software Tags:
django attachments
0 comments
Downloadtube.com agrees that pirated software hurts software
developers and does not support such practices. We acknowledge and
agree that software piracy is theft. Using django attachments crack,
django attachments key generator, django attachments keygen, as well as any
pirated django attachments serial number/serial numbers and django attachments
registration code/codes, warez, keys, torrents, passwords, is illegal
and does not support the future development of django attachments.
Downloadtube.com advises that django attachments should be only used in
accordance with the rules of intellectual property and the existing
Criminal Code. Downloadtube.com does not allow the inclusion of any
crack, serial or keygen and disclaims any liability for the
inappropriate use of django attachments.
Add to
django attachments Version History
Related Software
|
|
From category: HTTP-WWW |
| Aphid 0.19a is http (www) software developed by eScout Corporation. Aphid is a script for quickly compiling and installing the Apache Web server with mod_ssl. Aphid provides a facility for bootstr... |
|
|
From category: HTTP-WWW |
| Friki 2.1.1 is http (www) software developed by Frank Carver. Friki is a small and modern Java Wiki. It is simple to deploy (just drop in to any modern servlet container), small and very easy to cu... |
|
|
From category: HTTP-WWW |
| SCMS is a secure content management system.... |
|
|
From category: HTTP-WWW |
| SRESI is a smart bookmarks manager: from a list of tagged bookmarks.... |
|
|
From category: HTTP-WWW |
| editApage.org Beta 9.1 is http (www) software developed by Andrew Embler & Franz Maruna. editApage.org is a simple and flexible tool that helps Web designers and people who yearn for control over t... |
|
|
From category: HTTP-WWW |
| CGI-Shell 0.21 is http (www) software developed by Michael Pradel. CGI-Shell provides a shell using CGI, so everyone who has a CGI directory on a Web server can also have a shell on it. It is somet... |
|
|
From category: HTTP-WWW |
| Rank Tracker is an all-in-one ranking monitoring tool.... |
|
|
From category: HTTP-WWW |
| B-net 1.1 is http (www) software developed by Haddad Said. B-net project is a Website Content Management software that allows you have a dynamic website and add content to your website without know... |
|
|
From category: HTTP-WWW |
| Easiest Validate On Submit 1.0 is http (www) software developed by Ivo Jansch. Easiest Validate On Submit project enables Web developers to validate any number of form fields, client side (in Javas... |
|
|
From category: HTTP-WWW |
| Anca 0.9.1 is http (www) software developed by Tom Potrusil. Anca is a H.323 client for Qt 3.x. It means that it allows communicating (voice/video) with other similar clients over internet, eg. wit... |
|
|
From category: HTTP-WWW |
| KLinkStatus is a KDE link checker.... |
|
|
From category: HTTP-WWW |
| Bauk HTTP server 2.0.3 is http (www) software developed by Vlajko. Bauk HTTP server project is a high-performance Web server. Bauk\'s advanced architecture and unique design provide high performanc... |
|
|
From category: HTTP-WWW |
| Google Gears project is an open source Firefox extension that enables web applications to provide offline functionality.... |
|
|
From category: HTTP-WWW |
| Diqt 1.1.3 is http (www) software developed by Mikio Hirabayashi. Diqt is a Web-based multilingual dictionary reference tool. That is, dictionaries of many languages can be searched using a Web bro... |
|
|
From category: HTTP-WWW |
| dotBook reader 0.3.5 is http (www) software developed by Bernhard Fastenrath. dotBook reader is a reader for HTML books in .jar and .zip files. The dotBook application will be a book reader... |
Leave a comment