Skip to main content

Overall

Requirements

  1. packages:
djangorestframework==3.16.0
drf-spectacular==0.28.0
djangorestframework-simplejwt==5.5.0
django-ipware==7.0.1
django-filter==25.1

Usage:

Global exception handler for DRF. Handle every exception from Views. Config in settings.py:

REST_FRAMEWORK = {
    'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_simplejwt.authentication.JWTAuthentication',
    ),
    'EXCEPTION_HANDLER': 'dza_rest_utils.exceptions.custom_exception_handler',
    'DEFAULT_THROTTLE_CACHE': 'throttle_redis',
}
SIMPLE_JWT = {
    'ACCESS_TOKEN_LIFETIME': timedelta(hours=1),
    'REFRESH_TOKEN_LIFETIME': timedelta(days=3),
}
SPECTACULAR_SETTINGS = {}

Metadata

Release files for dza-rest-utils 0.1.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 dza-rest-utils 0.1.0
File Size Uploaded
dza_rest_utils-0.1.0.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dza-rest-utils 0.1.0
File Interpreter ABI Platform
dza_rest_utils-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.5 kB

Release files / dza_rest_utils-0.1.0.tar.gz

Download URL dza_rest_utils-0.1.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db551b3dc23bf5cd5f88bb243572606fd9222ff7eec66ffdbb251188c7df7b8f
BLAKE2b-256 checksum
How to use checksums
8d10b2ae7f6f9fa5fe4c481fe501f9de46345ef9316152899269159e6ca7b34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / dza_rest_utils-0.1.0-py3-none-any.whl

Download URL dza_rest_utils-0.1.0-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69c4811f9b96f2f412ac889a58dd016a2ac63a9b71af176256d00e3af4f44edc
BLAKE2b-256 checksum
How to use checksums
1ea7e0e14125c00ada18e70df1b95654ebca25684f9d794b2f38a83816d77196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

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