You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1a2e99f
Browse filesBrowse the repository at this point in the historyBrowse files
Update django todo example to use todo backend (#97)
* Update django todo d1 example to use todo backend
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Need to deploy your Worker to Cloudflare? Python Workers are in open beta and ha
33
33
-[**`sync-http-clients/`**](sync-http-clients) — demonstrates outbound HTTP with synchronous Python clients (`requests`, `urllib3`, and `httpx.Client`).
34
34
-[**`dynamic-py-py/`**](dynamic-py-py) — shows how to load and run a Python Worker dynamically at runtime using a [Worker Loader](https://developers.cloudflare.com/workers/runtime-apis/bindings/worker-loader/) binding.
35
35
-[**`django/`**](django) — runs a naive Django WSGI application directly on Python Workers.
36
-
-[**`django-todo-d1/`**](django-todo-d1) — uses Django with D1 for a basic TODO application.
36
+
-[**`django-todo-d1/`**](django-todo-d1) — implements the Todo-Backend API with Django and D1.
37
37
-[**`image-redraw/`**](image-redraw) — an example that combines [FastAPI](https://fastapi.tiangolo.com/), [R2](https://developers.cloudflare.com/r2/), [Queues](https://developers.cloudflare.com/queues/), [Workflows](https://developers.cloudflare.com/workflows/) and [Workers AI](https://developers.cloudflare.com/workers-ai/) to redraw uploaded images.
Copy file name to clipboardExpand all lines: django-todo-d1/README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Django TODO + D1 Example
1
+
# Django Todo Backend + D1 Example
2
2
3
3
[](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/django-todo-d1)
4
4
5
-
This example uses Django with [django-cf](https://pypi.org/project/django-cf/) and a D1 database to serve a small TODO API under `/api/*`, plus a static frontend from `public/` served by [Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/).
5
+
This example uses Django with [django-cf](https://pypi.org/project/django-cf/) and a D1 database to implement the [Todo-Backend](https://todobackend.com)API. The Worker only serves the backend; use the existing Todo-Backend client as the frontend.
6
6
7
7
## How to Run
8
8
@@ -21,15 +21,26 @@ Start the development server:
21
21
uv run pywrangler dev
22
22
```
23
23
24
-
Then open http://localhost:8787/ in your browser.
24
+
Then open the Todo-Backend client with the local API URL:
0 commit comments