My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Wiki pages
Links

This code is no longer maintained and no longer works in current versions of Django. Forks of it live on in a few different places:

File/media browser for Django admin interface. Designed to insert images and files into textareas in the admin interface with a simple GUI interface.

To install:

svn co http://django-admin-uploads.googlecode.com/svn/trunk/ django-admin-uploads
  1. Move upload to your Python Path
  2. Move upload_media to your MEDIA_ROOT
  3. Create uploads folder in your MEDIA_ROOT
  4. Move the upload folder inside templates to your project template folder
  5. Add upload to your INSTALLED_APPS
  6. Add this to your urlpatterns: (r'^uploads/', include('upload.urls'))
  7. Add the following line to the Admin class on any model you would like to have uploads available
  8. js = ['/static/upload_media/jquery.js', '/static/upload_media/model.js']

or to add TinyMCE for WYSIWYG editing

js = ['/static/upload_media/jquery.js', '/static/upload_media/tiny_mce/tiny_mce.js', '/static/upload_media/model.js']

where /static is your MEDIA_ROOT

Now manage.py syncdb and cross your fingers :)

External Services (Flickr, YouTube)

  • To enable inserting your YouTube videos, add YOU_TUBE_USER to your settings file.
  • To enable inserting your Flickr photos, add FLICKR_API_KEY and FLICKR_USER to your settings file (note: FLICKR_USER currently needs to be in old format which can be found in the id field of your Flickr RSS feed)
Powered by Google Project Hosting