|
|
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
- Move upload to your Python Path
- Move upload_media to your MEDIA_ROOT
- Create uploads folder in your MEDIA_ROOT
- Move the upload folder inside templates to your project template folder
- Add upload to your INSTALLED_APPS
- Add this to your urlpatterns: (r'^uploads/', include('upload.urls'))
- Add the following line to the Admin class on any model you would like to have uploads available
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)
