Skip to main content

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

  1. Install with pip:
    python -m pip install kition-djangodefaults
    
  2. Start your applications settings file with the default setting initialization
    from kition_djangodefaults import initialize_default_settings
    
    initialize_default_settings(__name__)
    
  3. (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

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

kition_djangodefaults-0.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kition_djangodefaults-0.3.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file kition_djangodefaults-0.3.0.tar.gz.

File metadata

  • Download URL: kition_djangodefaults-0.3.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.6 Darwin/23.6.0

File hashes

Hashes for kition_djangodefaults-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0cbcc96290861c693bfb879c3d99b122e7dd5b50d723aed285e8ee2e788cb5f5
MD5 6a4aef7cca624aae904e2137541dccfd
BLAKE2b-256 79103a867772178c8a7b87474476b1c47efb2838fedcd144552de896a79482da

See more details on using hashes here.

File details

Details for the file kition_djangodefaults-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kition_djangodefaults-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f0bb6b313c3b0ff97a085d7795808782202cf788c5a2bb8bb22824094f63393
MD5 e0fc1dacc8009b50bc14a906eb5a859d
BLAKE2b-256 5fd51c62d2baa0e529c86b1e371c2adbd0cb995dd1a300944d625b3115c60eac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page