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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_d1db-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 e59cb2d16ebe8aaad0a35808d4a73b06bafa82a6d8d12571652e8add6c7539c1
MD5 09cc20bb6b1a3aea0a459d4afe9ba059
BLAKE2b-256 e9a532495ad9c40a9c4de3eac88fb70334e3d4d5c8822933d97e21a1580f99af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_d1db-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 691f32b008bc73c4378e3fda9d57e67e7382e3a9e1a5b975af0ab42e09552de4
MD5 bb94e95e3413b6ba384c55fada5bed24
BLAKE2b-256 4f1392d84693f5622587118062e46e4590aaf2005737ecc3fef85b00ec824918

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