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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e238916a83e2b51318452a9583672bda4b891f3b67aded753d9cc366110e08e9 |
|
MD5 | 6479bf9dbee86d05371e50f57b0be8ce |
|
BLAKE2b-256 | 24cc36dfd611cfc5cb13a70ec7a84896eacdb96c5b01da1d05423ed02296d683 |
Close
Hashes for django_ajax_image_upload-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1697a2238b7a513ff322785932bbe282e55f64161e8cb9d081822effee76d8e |
|
MD5 | d8fa5671adae9e21209b81e455406921 |
|
BLAKE2b-256 | 96af8fc45c69bb11dbf85fea145768a70c0b75145dae014a622cd7d1f5b13250 |