Skip to main content

Provides utility functions for Django

Project description

Pursuit Library - Django

This package provides utility functions and classes for Django (and Select2).

It also contains static files for:

Configuration

The following values should be added to the Django configuration:

VERSION = "PROJECT_VERSION"
DEV_STAGE = "PROJECT_DEV_STAGE"
DISPLAY_VERSION = VERSION if DEV_STAGE is None else VERSION + " " + DEV_STAGE

DOMAIN = get_env('PROJECTNAME_DOMAIN')
USE_HTTPS = get_env('PROJECTNAME_USE_HTTPS').lower() == 'true'
BASE_URL = ("https://" if USE_HTTPS else "http://") + DOMAIN

Error handling

To enable error handling, add he following lines to your main urls.py file:

# Error handling

handler400 = "pursuitlib_django.errors.error_400"
handler403 = "pursuitlib_django.errors.error_403"
handler404 = "pursuitlib_django.errors.error_404"

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

pursuitlib-django-0.2.9.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

pursuitlib_django-0.2.9-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file pursuitlib-django-0.2.9.tar.gz.

File metadata

  • Download URL: pursuitlib-django-0.2.9.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.9

File hashes

Hashes for pursuitlib-django-0.2.9.tar.gz
Algorithm Hash digest
SHA256 82e754f7c715e75b2ced4f5582ff120827b2d72f8715810c503c1881004513af
MD5 0bfa7b1d32ff7d6505863b44023fecac
BLAKE2b-256 9278afceb9fb00db3a35f01f36aa453b899fa12e245fd428a1a16d5b8ec37cbc

See more details on using hashes here.

File details

Details for the file pursuitlib_django-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: pursuitlib_django-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.9

File hashes

Hashes for pursuitlib_django-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 160887f18a49eb1c18130fe348630b37c69061570b96d7c7d2bb7fd6352f8023
MD5 c4af43abe9a75c681df06f8fc2d7be35
BLAKE2b-256 91ac28b49b71f359b3b412497acb76b3cddc0dc5db453dabfe3c94dc48f758bd

See more details on using hashes here.

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