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 = (
    ...
    '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


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.7.4.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

django_ajax_image_upload-0.7.4-py2.py3-none-any.whl (22.1 kB view hashes)

Uploaded Python 2 Python 3

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