Skip to main content

SQLite database engine for Django that makes every table a STRICT table.

Project description

django-sqlite-strict

Usage

django-sqlite-strict is a drop-in replacement for Django's stock SQLite engine.

Prerequisites

  • A Django webapp using:
    • Django >= 4.2
    • SQLite >= 3.37.0

Install

  1. Add as a dependency with uv add django-sqlite-strict
  2. In settings.py, add to INSTALLED_APPS after any first-party apps and before django.contrib packages.
  3. In settings.py, configure DATABASES to use it as the engine:
DATABASES = {
    "default": {
        "ENGINE": "django_sqlite_strict",
        "NAME": BASE_DIR / "db.sqlite3",
    }
}

Develop

Run tests

# run latest supported python/django pairing eg. 3.14/6.0
uvx nox

# run all test sessions
uvx nox -s test

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_sqlite_strict-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

django_sqlite_strict-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_sqlite_strict-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_sqlite_strict-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbe7527f83dc6aae004b17d7ec4b5e40b2e55f9987a35c1c7e6dcc16265ecc67
MD5 81c6266dbe525859466a2cdce055a8d0
BLAKE2b-256 f611515f48981d062047ddb6461252d032c71f14eb2c8a34fef0631004f66c9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sqlite_strict-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_sqlite_strict-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ed48b62562246948883a926b03a212c78d2395738b1047d445863183fe00ab
MD5 8c4dd082f0b9580ace3865ac60451c63
BLAKE2b-256 93416da68c5e834d8cb4696d1afe4318ec893805ad866c71eb130a4e3f763201

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