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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3c025f5c03b9c605299af1ddbd0070f70219471b4947e0bf6c1a30a3049b34 |
|
MD5 | 6394aae1dcd0a3b0125e0caf133a3d26 |
|
BLAKE2b-256 | 0027973769722adc776731aff2f8c49ba73e9659c4550bf38a854d34a22712d5 |
Close
Hashes for django_ajax_image_upload-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d414ec9843c21bbb5898cdeaf22f04534718163ec8c5577cba66cc48f61a5fd |
|
MD5 | a37dd4af20779cbe0b312bdfed6578c7 |
|
BLAKE2b-256 | fd52ea6d297cbb50d1229c64699134a27db8131e95f5475d0b786601052ecb76 |