skip to navigation
skip to content

Not Logged In

s3filesmanager 0.5.3

AWS S3 files manager

An AWS S3 Files online manager base on python/django

To use this app follow these steps:

  1. Create your working environment
  2. Install Django
  3. Put the s3filesmanager into INSTALLED_APPS
  4. Install additional dependencies
  5. syncdb and migrate (if you use South)

Install

pip install s3filesmanager

Dependency

  1. django-model-utils
  2. django-bootstrap-toolkit
  3. PIL
  4. sorl-thumbnail
  5. boto
  6. django-storages

INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'south',
    'bootstrap_toolkit',
    'sorl.thumbnail',
    's3filesmanager',
)

Settings

AWS_ACCESS_KEY_ID = 'YOUR_AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY = 'YOUR_AWS_SECRET_ACCESS_KEY'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_STORAGE_BUCKET_NAME = 'YOUR_AWS_STORAGE_BUCKET_NAME'
ASSETS_URL = 'https://BUCKET_NAME.stimuli.s3-website-us-east-1.amazonaws.com'
MEDIA_ROOT = ASSETS_URL + 'media/'
MEDIA_URL = ASSETS_URL + 'media/'
AWS_S3_SECURE_URLS = False
AWS_QUERYSTRING_AUTH = False

urls.py

url(r'^', include('s3filesmanager.urls')),

template tags

{% load s3filesmanager_tags %}

<!-- Put the s3filesmanager tag in a div which you want to show the files manager -->
<div>
    {% s3filesmanager %}
</div>

<!-- Put the s3filesmanager_js tag in html head, but need to load jquery and bootstrap at first -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
{% s3filesmanager_js %}

Javascript

The app use some javascript lib for upload files

  1. jQuery
  2. Bootstrap
  3. plupload
  4. Underscore
 
File Type Py Version Uploaded on Size
s3filesmanager-0.5.3.tar.gz (md5) Source 2013-06-18 166KB
  • Downloads (All Versions):
  • 16 downloads in the last day
  • 286 downloads in the last week
  • 1110 downloads in the last month