New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

django-ajax-image-upload

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-ajax-image-upload

Upload images via ajax.

  • 0.9.4
  • PyPI
  • Socket score

Maintainers
3

============================= Django Ajax Image Upload

.. image:: https://badge.fury.io/py/django-ajax-image-upload.svg :target: https://badge.fury.io/py/django-ajax-image-upload

.. image:: https://travis-ci.org/idaproject/django-ajax-image-upload.svg?branch=master :target: https://travis-ci.org/idaproject/django-ajax-image-upload

.. image:: https://codecov.io/gh/idaproject/django-ajax-image-upload/branch/master/graph/badge.svg :target: https://codecov.io/gh/idaproject/django-ajax-image-upload

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:

.. code-block:: python

INSTALLED_APPS = (
    ...
    'ajaximage',
    ...
)

Add Django Ajax Image Upload's URL patterns:

.. code-block:: python

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc