Skip to main content
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.

Release files for jpt-django-utils 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jpt-django-utils 0.8.0
File Size Uploaded
jpt-django-utils-0.8.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jpt-django-utils 0.8.0
File Interpreter ABI Platform
jpt_django_utils-0.8.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 36.6 kB

Release files / jpt-django-utils-0.8.0.tar.gz

Download URL jpt-django-utils-0.8.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c692cf87e1afc1ca3cfba5338c421ddccb2d49635808fa628d620f2b0f6b828
BLAKE2b-256 checksum
How to use checksums
2c8a1c33bcc79fddc8e0c020a72339d9750cbbb5bb992f19302ed4473a2582de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.10

Release files / jpt_django_utils-0.8.0-py2.py3-none-any.whl

Download URL jpt_django_utils-0.8.0-py2.py3-none-any.whl
Size 21.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e99c5e7b24bdededc7fac8d4c17aacb65b59b4d7b70ea5ccf9b6dbd04b752198
BLAKE2b-256 checksum
How to use checksums
488f3b3e4ce4c8312a5be3c7b8dd17090bdbedf8f5a51a087466665073b2cfb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.10

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page