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.10.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

django_d1db-0.0.10-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_d1db-0.0.10.tar.gz
  • Upload date:
  • Size: 10.9 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.10.tar.gz
Algorithm Hash digest
SHA256 d30d0b76679b5d84d29c817547c15000cddb70d9065ee61e96c41ab01520b23b
MD5 c35dd0943120474a4a71a6f78abd4833
BLAKE2b-256 d60900743430e1397baa201df82511158e65c845ba3fb0183b6f6ae0c3a7db72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_d1db-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 13.3 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3951d198e19c29a159302343b2120127b74f0c4d5b129b0c0f3ba218a15b24b8
MD5 1f53cb27294672168fd5bbec634d32dd
BLAKE2b-256 0745a8184729619bda4636df8314e0754e85e9e6f8c30e6ed8fc59234d4ca63d

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