Default configuration and components for Django projects.
Project description
Kition Django Defaults
This package provides default configuration and components for Django projects.
Motivation
Building, operating and maintaining many Django applications leads to repetitive code. This repository strives to reduce the mental overhead by providing code that otherwise would have to be repeated.
Installation
Requirements
Python 3.12 and Django 5.1 supported.
Installation
- Install with pip:
python -m pip install kition-djangodefaults - Start your applications settings file with the default setting initialization
from kition_djangodefaults import initialize_default_settings initialize_default_settings(__name__)
- (Optional) configure any of the following components.
Kubernetes Readiness Endpoint Middleware
Install via
MIDDLEWARE = [
# Putting the healthcheck middleware first to circumvent ALLOWED_HOSTS protections, which would fail Kubernetes
# Readiness Probe requests.
"kition_django_defaults.healthcheck.HealthCheckMiddleware",
...
]
Development
poetry env use $(pyenv which python)
poetry install
poetry run python -m unittest
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kition_djangodefaults-0.4.0rc1.tar.gz.
File metadata
- Download URL: kition_djangodefaults-0.4.0rc1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07f0f1274228d1ae831eae1611871aa6f7c836cd8cdb79a3f1bfd36a4993f302
|
|
| MD5 |
5d49179a201ba17000d4ca0b69669bfd
|
|
| BLAKE2b-256 |
e660af63f759e990a84a3b727d6dbc7b295ac1b14d1f2ac7a47a819ec2311edc
|
File details
Details for the file kition_djangodefaults-0.4.0rc1-py3-none-any.whl.
File metadata
- Download URL: kition_djangodefaults-0.4.0rc1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe3808fb94327151f71f644579055f09cce5292d898304c708619fe61c2a36a1
|
|
| MD5 |
54c81fad3801c72456ea242a16a976ca
|
|
| BLAKE2b-256 |
f09c199b5d86c26176be51335ae3e2ccf7d85a401ff69d71b9249d833fe79501
|