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 hashes)
Built Distribution
Close
Hashes for django_d1db-0.0.10-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 3951d198e19c29a159302343b2120127b74f0c4d5b129b0c0f3ba218a15b24b8 |
|
| MD5 | 1f53cb27294672168fd5bbec634d32dd |
|
| BLAKE2b-256 | 0745a8184729619bda4636df8314e0754e85e9e6f8c30e6ed8fc59234d4ca63d |