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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4364cbfb3387403911befede499c2a778f4cd245fde4de87568c41bcd1ed348 |
|
MD5 | 265bc12768203e45d459a535adb9f298 |
|
BLAKE2b-256 | b4bd1ad46a9a22af06f9511db640e15e23b021af86756ceb0df2167f3beb53aa |
Close
Hashes for django_ajax_image_upload-0.8.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ed08dd10b5002d2e2bea4ffd79269882ee6deee0df36145461f693e1cbfea1 |
|
MD5 | 2b5dbfcb60058407534ce192abede8fe |
|
BLAKE2b-256 | 7728b28a78f82bb09da6549411f12f4c20d1618267f02eefe5ec83b26016c138 |