Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images are optionally resized.
Project description
##Ajax file uploads
[https://github.com/bradleyg/django-ajaximage](https://github.com/bradleyg/django-ajaximage)
Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images are optionally resized.

```pip install django-ajaximage```
```python
# settings.py
AJAXIMAGE_DIR = 'ajaximage/' # (optional, default is 'ajaximage/')
```
```python
# urls.py
urlpatterns = patterns('',
url(r'^ajaximage/', include('ajaximage.urls')),
)
```
```python
# models.py
from django.db import models
from ajaximage.fields import AjaxImageField
class Example(models.Model):
thumbnail = AjaxImageField(upload_to='thumbnails'
max_height=200, #optional
max_width=200, # optional
crop=True) # optional
# if crop is provided both max_height and max_width are required
```
[https://github.com/bradleyg/django-ajaximage](https://github.com/bradleyg/django-ajaximage)
Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images are optionally resized.

```pip install django-ajaximage```
```python
# settings.py
AJAXIMAGE_DIR = 'ajaximage/' # (optional, default is 'ajaximage/')
```
```python
# urls.py
urlpatterns = patterns('',
url(r'^ajaximage/', include('ajaximage.urls')),
)
```
```python
# models.py
from django.db import models
from ajaximage.fields import AjaxImageField
class Example(models.Model):
thumbnail = AjaxImageField(upload_to='thumbnails'
max_height=200, #optional
max_width=200, # optional
crop=True) # optional
# if crop is provided both max_height and max_width are required
```
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-ajaximage-0.1.5.tar.gz
(51.0 kB
view details)
File details
Details for the file django-ajaximage-0.1.5.tar.gz.
File metadata
- Download URL: django-ajaximage-0.1.5.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c76b29592bd5c0fb82ed681fa8f239a00482c9013f94f45132e4ef6cbb20ec81
|
|
| MD5 |
cd0666dd8d424bd27ff2437c22e22e2d
|
|
| BLAKE2b-256 |
facc7454f68b5a1e6b9b9887a83c5043c6d58409c77faf21607078bdb978b51f
|