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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61ac1cfd8dba9e5baf14331a966b6b90a260c82602d3070883e9252af90b9f7 |
|
MD5 | 1d24e53d8eab8550e9ad57aa25ecb335 |
|
BLAKE2b-256 | fbf1573735d4e72571f9c78b7a48b2045a9cba0c0663d94b836dfa4d4eb61e23 |
Close
Hashes for django_ajax_image_upload-0.7.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf58b0c8f5b33c8f334b2053b81d269e9ddcf6b700921d7ad21677d019e34861 |
|
MD5 | cd642ed401de25a8a1f5d275574a179b |
|
BLAKE2b-256 | d92ae602bb4cb34ac6c8029562907c3b243b6218697535578ad4a7b0247dd0cd |