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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a5fd325129b76dfd92f14c430a6c7ca5465968f499d1ceafdbd04e4fac4f5b |
|
MD5 | 80fe473d340268466638e2933b17b6bd |
|
BLAKE2b-256 | 9fd5d5a271b0da580b157f31e852344ae5d593a798785dd2eade770f73850817 |
Close
Hashes for django_ajax_image_upload-0.7.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ca8684e07799ad386448df71730786c83b8e49faad5ec17da83069c058d835 |
|
MD5 | 590ef373acc6c9c167d4a41f1d51a7b4 |
|
BLAKE2b-256 | 7ff59967eecf769d5819b0b3b6d727374dc7eee185b96f8676db63cecd2f38ef |