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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775cf08582fb0e66886834f2a7aed22e04f9fdf1f5bab8280d5cc4893e63b8cc |
|
MD5 | 4982fc88a4fa91a1547202027be7292a |
|
BLAKE2b-256 | ea6d1ad7c69e2c8dc8ce75722eb9bc028e9f382249e0ad935de5d69990492ba1 |
Close
Hashes for django_ajax_image_upload-0.7.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0052516f6a100080d73aca4d637b4951fd20427819c664ecf23cca81a746c8 |
|
MD5 | 5bd962de0663cf39e7b5a4cd7746c237 |
|
BLAKE2b-256 | 43bca129422a7f2d1c6e9076f24147d01ed3ab13b612ad82ad2b7999afa6d008 |