Source

django-cloudi / django_cloudi / README

Full commit
Django Cloud Images
===================

Since I've been using Django all the sites I've build have used S3 exclusively 
for all public facing static files. I want this app to be easily configured 
and assist with uploading media.

Currently the app only uploads to S3 to folder path with year/month/filename.

## settings.py ##

Add to Installed Apps:
`'django-cloudi',`

## forms.py ##
Import the function into your forms.py and then add the widget to a CharField form field.

Example:

    from django_cloudi.widgets import CloudImages

    url = forms.CharField(widget=CloudImages(attrs={'style':'width:400px;'}))

## Media ##
You must create symlink in your media folder so the js and css can be served.

Example:

    `ln -s fancybox path/to/django-cloudi/fancybox`