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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c44ab469eaf0d92f7b35559a568059ca58b3b45218a58eefe762b41cefc279 |
|
MD5 | a62dc2533f78f401b275ec75bf0e5812 |
|
BLAKE2b-256 | 1fc6b9a86903e5d2eec5ba57ffa956d9ce920dbb8a7a34459465ef5bda8b97a9 |
Close
Hashes for django_ajax_image_upload-0.7.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83aae24cdf7998b94ac962ac1bb09fee7f8a03c26be8d695f466190a2f374e34 |
|
MD5 | e5c22caa551b8d41d6290d5de16a0010 |
|
BLAKE2b-256 | d4d0c5f267a8fda976a29aa2c67a2480441914b175ec8b985cff523cc6cc3968 |