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:
- Jquery 3.6.0
- Select2 4.1.0-rc.0
- Bootstrap 5.1.3 (JS only, a customized CSS must be provided)
- FontAwesome 5.15.4
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
Built Distribution
Close
Hashes for pursuitlib_django-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d626702d264e1aa2c33719fd3e1c3c82764812d499dc0eace711ca7a7cdd03d |
|
MD5 | 20c78bf97908d3555530c6e2d26bc7a7 |
|
BLAKE2b-256 | 7daf5439ff38d5de0e3a33503dbb6c7bc7428a2d9387c89a310083ee4bd8f462 |