An example application using Django Uploadify S3
Python JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Django Uploadify-S3 (DUS3) Example

Copyright (c) 2010, Sam Charrington (@samcharrington),


This is an example application that illustrates the use of the DUS3 application.



The recommended installation procedure uses virtualenv and buildout.

  1. If you do not already have virtualenv you will need to install it using easy_install virtualenv
  2. Create a new virtualenv 'foo' with virtualenv foo
  3. Activate the virtualenv: cd foo; source bin/activate
  4. Clone the git repo: git clone git:// example
  5. Bootstrap the buildout environment: cd example; python
  6. Run the build: bin/buildout. This will download and install (to the virtualenv) all dependencies including Django, DUS3 and Uploadify
  7. Sync the db: bin/django syncdb
  8. Edit src/settings/, and add your AWS information
  9. Create a crossdomain.xml file and upload it to the root of your S3 bucket
  10. Run the dev server: bin/django runserver


With installation complete and the dev server running, you may now open your web browswer and go to From here you can play with the demo app. For example, you can create an Example object and upload a file.

Once you get a feel for what the demo app is doing, you can read the source code and integrate it into your own projects.


  1. In order for the browser to communicate to your S3 bucket, you must upload a crossdomain.xml file to the root of your bucket. This example allows any browsers to communicate with your S3 bucket:

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "">
      <allow-access-from domain="*" secure="false" />
  2. Because Uploadify uses a Adobe Flash component to perform the actual upload, browser-based HTTP debugging tools like Firebug cannot see the traffic between the browser and S3. You can however use a network sniffer like Wireshark ( to view the traffic.