Skip to main content

Django backend for Cloudflare D1

Project description

django-d1

Cloudflare D1 backend engine for Django

This package is still in tests, and issues will probably appear! Please report any issues you find in the Issues tab.

Installation

pip install django-d1db

Usage

DATABASES = {
    'default': {
        'ENGINE': 'django_d1',
        'CLOUDFLARE_DATABASE_ID': '<database_id>',
        'CLOUDFLARE_ACCOUNT_ID': '<account_id>',
        'CLOUDFLARE_TOKEN': '<token>',
    }
}

The Cloudflare token requires D1 Edit permissions.

A simple tutorial is available here for you to read.

Limitations

Due to the remote nature of D1, queries can take some time to execute.

Read all Django limitations for SQLite databases here.

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_d1db-0.0.9.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

django_d1db-0.0.9-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file django_d1db-0.0.9.tar.gz.

File metadata

  • Download URL: django_d1db-0.0.9.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for django_d1db-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ef1478cdd6cb6ce9f0b2f473b1fad8d836f8d5c39f2ac50283f40b628108ac00
MD5 d5321bfb6ebde18a33f342e36b56b901
BLAKE2b-256 c825dba98e7508b92f231120be617cb0a579f23f846d6a3a06153d696341041f

See more details on using hashes here.

File details

Details for the file django_d1db-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: django_d1db-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for django_d1db-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3d751ca4b4082c53fb7ebbf6a433e1b22930ee2c1f35739a58adf689b42f8e41
MD5 887e3997ed103c3c3039e7e243d0936f
BLAKE2b-256 7c35837f68f2745431631583d29eeefd9c4393d22781b20eb79426c2670a484c

See more details on using hashes here.

Supported by

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