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.

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

Uploaded Source

Built Distribution

django_d1db-0.0.4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_d1db-0.0.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.3

File hashes

Hashes for django_d1db-0.0.4.tar.gz
Algorithm Hash digest
SHA256 823905a603f284b2ec3d367123e7b5c34c7cf509deade588fe278e35dc0a5085
MD5 6e6272157ee13d68fe1c09184a01bcf3
BLAKE2b-256 5082bc0843ac7b9aea6013ed9f950e85e6a56506d748479c1d4cc39bb64904ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_d1db-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.3

File hashes

Hashes for django_d1db-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fc94b79106598bb614b257f05bdc8393a05f6dd2bf36ba19ef06368a94274fb2
MD5 681d40d01a26e5afd9d75ab3d3c37458
BLAKE2b-256 60ad300ce17340586402b510511527d3fbf471215911a5ea6f579721ba5d92a0

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