Skip to main content

Reusable Django building blocks for multi-app deployments

Project description

django-infra-core

Reusable package for shared Django architecture across multiple services.

What this package provides

  • Abstract base models for institution and student domains
  • Admin mixin for institution scoped access
  • Settings helpers for env driven configuration
  • Auth utilities and middleware to attach institution context

Installation

pip install django-infra-core==0.1.0

Quick usage

# settings.py
INSTALLED_APPS = [
    # ...
    "infra_core",
]

# models.py
from infra_core.models import BaseInstitution, BaseStudent

class Institution(BaseInstitution):
    pass

class Student(BaseStudent):
    institution = models.ForeignKey(
        Institution,
        on_delete=models.CASCADE,
        related_name="students",
    )

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

django_infra_core-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

django_infra_core-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file django_infra_core-0.1.0.tar.gz.

File metadata

  • Download URL: django_infra_core-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for django_infra_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0460f2f2b96e5f77508d370229d0d5c8b31bd7603cbddd8090e977536669b51
MD5 046c070023939cd545d2e75c2ffdb356
BLAKE2b-256 bd0a4ed933f3caf1ee6e86daedbed38c61eeaef9aca0e4392a916ef75772b361

See more details on using hashes here.

File details

Details for the file django_infra_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_infra_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b6fee5388ef245055244e8f7f7b6a2b5ca97494d2ce1a65bbde06a793783cde
MD5 50d674f6fe6ec6613c9319db215b85f7
BLAKE2b-256 58cb87bbbce0d74326ce6f73d35c14a5e95cd9815c886d9b2adf0bf8c46d831f

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