Upload images via ajax.
Project description
Upload images via ajax.
Documentation
The full documentation is at https://django-ajax-image-upload.readthedocs.io.
Quickstart
Install Django Ajax Image Upload:
pip install django-ajax-image-upload
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'adminsortable',
'ajaximage',
...
)
Add Django Ajax Image Upload’s URL patterns:
from ajaximage import urls as ajaximage_urls
urlpatterns = [
...
url(r'^', include(ajaximage_urls)),
...
]
Define your Image model: .. code-block:: python
from ajaximage.models import AbstractImage
- class MyImage(AbstractImage):
# define additional fields here
- class Meta:
…
Define generic tabular inline .. code-block::python
from ajaximage.admin import ImageInline
from .models import MyImage
- class MyImageInline(ImageInline):
models = MyImage
Example usage of AjaxImageUploadMixin: .. code-block::python
models.py
Features
TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
History
0.4.0 (2018-01-28)
First release on PyPI.
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
Built Distribution
Close
Hashes for django-ajax-image-upload-0.7.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3edcabec4a56648892b6081d211a76e0f2e19b3857e48acb88b72f0f2f41bbc2 |
|
MD5 | f5203162a87933a26b60c77c73d1f8d8 |
|
BLAKE2b-256 | 353b3532462fb1c723ae17422ffc7423f46be23716e7e1d050d55845555c37b0 |
Close
Hashes for django_ajax_image_upload-0.7.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5e32f41c127c2d5340fb806518da1291ded123ef1561d9e530442ca1f267f0 |
|
MD5 | 4fae30b1ce48d996e2cd38b3da8c8051 |
|
BLAKE2b-256 | 4070c0a08da8fba3797ef01e0410fcdd43bed5de56ef079a0adbc28096c6b72e |