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 details)

Uploaded Source

File details

Details for the file s3filesmanager-0.5.3.tar.gz.

File metadata

File hashes

Hashes for s3filesmanager-0.5.3.tar.gz
Algorithm Hash digest
SHA256 9eb770b0ba34616a99e203a54b60ce48b69734cc546b007479b9ed04ddc194ea
MD5 cbf3469d6610d79be32cdfd2b265fb36
BLAKE2b-256 bcbad3c1d9268fa77e802cf771af5a956fc522050cedc6e899d7c631fa7b55cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page