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 = (
...
'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.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e85587008d9cc02bf3436c6aa895277cd36b4cf516d9764de900d189be3458 |
|
MD5 | b54e90777b930a393651ad17cee8e192 |
|
BLAKE2b-256 | 502571084f2034b204f66111fbfd86b53193c868a2ca4c96ab533453be3a20e2 |
Close
Hashes for django_ajax_image_upload-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ddb8dfbed6e136e666afdfe855e8e0161173c86068a8600135e6ed724ad59f |
|
MD5 | 71551da6837655c31d17f920493ea2f8 |
|
BLAKE2b-256 | 572f8e0fc0a0237a2b747ff7dd1c4c6907fc6c5ff15ac24c6a0ad6827de87e65 |