What's new? | Help | Directory | Sign in
Google
                
Code License: New BSD License
Labels: django, file, upload, media, browser
Show all Featured Wiki Pages:
ToDo
Links:
Join project
Project owners:
  sgt.hulka
Project members:
smileychris

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)