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.6.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pursuitlib-django-0.2.6.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/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pursuitlib-django-0.2.6.tar.gz
Algorithm Hash digest
SHA256 147a52d006305de9e6eed1f30d88ddd418189b027088992e7d510d2f909e196b
MD5 290832816263f6c0f9e57315aab07875
BLAKE2b-256 f3dd4addd934831e81b33a78bc8eb00f1d4fec8ac3b059260c5e8e77e7a4c6a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pursuitlib_django-0.2.6-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/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pursuitlib_django-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7d626702d264e1aa2c33719fd3e1c3c82764812d499dc0eace711ca7a7cdd03d
MD5 20c78bf97908d3555530c6e2d26bc7a7
BLAKE2b-256 7daf5439ff38d5de0e3a33503dbb6c7bc7428a2d9387c89a310083ee4bd8f462

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