If you wish to override the default templates (you probably will), this is how to do it.
The following paths are being used by the template tags and views
The search path is as follows (in this order):
- “attachments/app_label/model/<template name>.html”
- “attachments/app_label/<template name>.html”
- “attachments/model/<template name>.html”
- “attachments/<template name>.html”
where app_label is the app_label of the model which the attachment should be related to (in our case demosite), and the model is the model which the attachment should be related to (in our case shape).
This means that you can create a different form (if you choose to) for
Template used to render an upload form when adding a new attachment to some object.
Template used to show the “Really delete this attachment?”, and eventually post to the DeleteAttachmentView which performs the delete action.
After deleting an attachment, redirects to this template unless a next value is provided.
A standard 400 error page used if settings.DEBUG = True Not used in production mode.