Skip to main content

AWS S3 files manager

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3filesmanager-0.5.3.tar.gz (170.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page