Skip to main content

Allows to attach files and images for any objects, specified in configuration. If you use TinyMCE to edit object content, this module makes for you links to files in hyperlink select box and list of images in image select box.

Project description



  1. Put attachment as LAST item to your INSTALLED_APPS in your within your Django project.

  2. Sync your database

    ./ syncdb



Specify Models for which you`d like to add images and files


Specify Model to be listed in link-list


Disable image grouping (enabled by default)


For objects listed in link-list these attributes will be used:

  • get_absolute_url() to retrieve url.
  • __unicode()__ to retrieve verbose name.


Add attachment to BEFORE admin/

(r'^', include('attachment.urls')), # Must be placed before admin/





    'external_image_list_url': 'images/',
    'external_link_list_url': 'links/',

urlpatterns += patterns('',
    (r'^', include('attachment.urls')), # Must be placed before admin/
    (r'^admin/', include(,

Now you can attach images and files to Item object. After you will save Item-object in TinyMCE editor for this page will be available:

  • attached images in list of images.
  • attached files in list of links.
  • all News objects in list of links.

Here are screenshots that demonstrates attachment work:

  • Link list - link lists
  • Image list - image lists
  • Attached files - attached files


  • 0.5.0 - Image and file title of any size
  • 0.4.1 - get_image_groups tag returns a sorted dict
  • 0.4.0 - Grouping images by new “group” field enabled.
  • 0.3.0 - Ordering by new “position” field enabled.
  • 0.2.0 - Add field “title” for models AttachmentFile, AttachmentImage


Content plugins

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for redsolutioncms.django-tinymce-attachment, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size redsolutioncms.django-tinymce-attachment-0.5.0.tar.gz (10.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page