Skip to main content

Upload images via ajax.

Project description

https://badge.fury.io/py/django-ajax-image-upload.svg https://travis-ci.org/idaproject/django-ajax-image-upload.svg?branch=master https://codecov.io/gh/idaproject/django-ajax-image-upload/branch/master/graph/badge.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ajax-image-upload-0.9.4.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file django-ajax-image-upload-0.9.4.tar.gz.

File metadata

File hashes

Hashes for django-ajax-image-upload-0.9.4.tar.gz
Algorithm Hash digest
SHA256 6aea05c427c5b6bc5521bb3c3ec5439fd411343b71f89cb6eb55198be7b74eb8
MD5 78457abc742a3d036bd35b1bd5117378
BLAKE2b-256 a837b634feeb022f18f3899b8a0df0a85520069ccad9f25afe4be1729d67988d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page