Giter Club home page Giter Club logo

django-s3direct's Introduction

django-s3direct

Upload files direct to S3 from Django

Add direct uploads to AWS S3 functionality with a progress bar to file input fields within Django admin.

screenshot

Installation

Install with Pip:

pip install django-s3direct

Update Django files:

Currently only python 2.7 supported.

# settings.py
INSTALLED_APPS = [
    ...
    's3direct',
    ...
]
S3DIRECT_DIR = 's3direct' # (optional, default is 's3direct')
AWS_SECRET_ACCESS_KEY = ''
AWS_ACCESS_KEY_ID = ''
AWS_STORAGE_BUCKET_NAME = ''
# urls.py
urlpatterns = patterns('',
    url(r'^s3direct/', include('s3direct.urls')),
)
# models.py
from django.db import models
from s3direct.fields import S3DirectField

class Example(models.Model):
    thumbnail = S3DirectField(upload_to='s3direct')
    # 'upload_to' is an optional argument

You may need to run collectstatic before s3direct will work correctly on your public website:

python manage.py collectstatic

Build Status

django-s3direct's People

Contributors

bradleyg avatar jmcvetta avatar pagles avatar

Watchers

Çağdaş Tülek avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.