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:
from pursuitlib.utils import get_env
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"
Metadata
Release files for pursuitlib-django 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pursuitlib-django-0.3.2.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pursuitlib_django-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.1 MB
Release files / pursuitlib-django-0.3.2.tar.gz
| Download URL | pursuitlib-django-0.3.2.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e2ee7e19388506807f634757b6e542f7d7d48404102861fb10912e774826aa6
|
|
BLAKE2b-256 checksum How to use checksums |
91129a16d32339584f159ae48b7017eb96c1c4a24bfd8cd58055205c47227bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / pursuitlib_django-0.3.2-py3-none-any.whl
| Download URL | pursuitlib_django-0.3.2-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc25b185177618c3f5306fdf6d89082522810dc8758064b3a7dfe77e3fb8c632
|
|
BLAKE2b-256 checksum How to use checksums |
c9352e377db4bb4ab78eb0c8dd1c94c04ea3d7779ab04077a758ca5c70a8493b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|