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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page