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

Uploaded Source

Built Distribution

django_d1db-0.0.7-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_d1db-0.0.7.tar.gz
  • Upload date:
  • Size: 7.3 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.7.tar.gz
Algorithm Hash digest
SHA256 7becfee7b6b121258ff3d471babea29a6d08554d2ac9409c57aea2f27d8bda61
MD5 bbbcccc528f4575c644ab76fbbb8e91a
BLAKE2b-256 5d0ed460a418a9d5227631fd2f2a685b84bffb0fecf3e3faf5f7ede5ab0c9501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_d1db-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dd135ce15353e8a9ca300979babb84a4db231fd8cf55f1309633a6b8126d1bfb
MD5 8a564c7ad8594547caf347893bf09f53
BLAKE2b-256 ad860f92809716de857eb3f642e99203ecebf6e75fefbf279ed40fb9faff62e8

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