Add direct uploads to S3 functionality with a progress bar to file input fields within Django admin.
Project description
##Ajax file uploads
[https://github.com/bradleyg/django-s3direct](https://github.com/bradleyg/django-s3direct)
Add direct uploads to S3 functionality with a progress bar to file input fields within Django admin.
![screenshot](https://raw.github.com/bradleyg/django-s3direct/master/screenshot.png)
```pip install django-s3direct```
```python
# settings.py
S3DIRECT_DIR = 's3direct' # (optional, default is 's3direct')
AWS_SECRET_ACCESS_KEY = ''
AWS_ACCESS_KEY_ID = ''
AWS_STORAGE_BUCKET_NAME = ''
```
```python
# urls.py
urlpatterns = patterns('',
url(r'^s3direct/', include('s3direct.urls')),
)
```
```python
# 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
```
[https://github.com/bradleyg/django-s3direct](https://github.com/bradleyg/django-s3direct)
Add direct uploads to S3 functionality with a progress bar to file input fields within Django admin.
![screenshot](https://raw.github.com/bradleyg/django-s3direct/master/screenshot.png)
```pip install django-s3direct```
```python
# settings.py
S3DIRECT_DIR = 's3direct' # (optional, default is 's3direct')
AWS_SECRET_ACCESS_KEY = ''
AWS_ACCESS_KEY_ID = ''
AWS_STORAGE_BUCKET_NAME = ''
```
```python
# urls.py
urlpatterns = patterns('',
url(r'^s3direct/', include('s3direct.urls')),
)
```
```python
# 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
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-s3direct-0.0.7.tar.gz
(49.2 kB
view hashes)