Skip to main content

Re-usable Django utils.

Project description

https://badge.fury.io/py/jpt-django-utils.svg https://travis-ci.com/jptd/JPT-django-utils.svg?token=whRx2vqBkv8CM6GEdmEf&branch=develop

Re-usable Django utils.

Documentation

The full documentation is at https://JPT-DJANGO-UTILS.readthedocs.io.

Quickstart

Install JPT Django Utils:

pip install jpt-django-utils

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'jpt_django_utils.apps.JptDjangoUtilsConfig',
    ...
)

Add JPT Django Utils’s URL patterns:

from jpt_django_utils import urls as jpt_django_utils_urls


urlpatterns = [
    ...
    url(r'^', include(jpt_django_utils_urls)),
    ...
]

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

History

0.8.0 (2021-01-05)

  • Use serializer.instance instead of serializer.data

0.7.0 (2020-11-17)

  • Add perform_create method in CreateModelMixin

0.6.0 (2018-11-08)

  • Log full exception traceback in ExceptionMiddleware.
  • Allow additional data to be passed to APIView.failure().

0.5.2 (2018-03-05)

  • Fix PublishExpireManager not being exported by publishable module.

0.5.1 (2018-03-05)

  • Add PublishExpireManager.

0.5.0 (2018-02-06)

  • Add AutoIntVersionSerializer

0.4.0 (2018-01-30)

  • Add json_client fixture.
  • Add rest_framework utils

0.3.0 (2018-01-26)

  • Enforce Python 3.4 >= only in setup.py.
  • Add PublishExpireMixin and PublishExpireQuerySet.

0.2.1 (2018-01-24)

  • Re-upload to PyPI with an all lowercase name.

0.2.0 (2018-01-24)

  • Add AutoIntVersionAdmin.

0.1.0 (2018-01-22)

  • Add SoftDeletionMixin.
  • Add AutoIntVersionMixin and AutoIntVersionField.
  • Add CreatedUpdatedMixin, CreatedUpdatedSerializer and CreatedUpdatedAdmin.
  • Add exception utils: raise_truthy, raise_falsey, raise_none.
  • Add testing.client.JSONClient.

0.0.0 (2018-01-12)

  • Initial commit.

Project details


Download files

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

Files for jpt-django-utils, version 0.8.0
Filename, size File type Python version Upload date Hashes
Filename, size jpt_django_utils-0.8.0-py2.py3-none-any.whl (21.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size jpt-django-utils-0.8.0.tar.gz (15.3 kB) File type Source Python version None Upload date Hashes View

Supported by

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