From 9e69c9245b4ae3543a538daffc9ec92d9535fe25 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Thu, 7 Sep 2023 15:51:45 +0800 Subject: [PATCH] develop: include Django in Python ORM (#14748) (#14757) --- develop/dev-guide-choose-driver-or-orm.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/develop/dev-guide-choose-driver-or-orm.md b/develop/dev-guide-choose-driver-or-orm.md index 1278b6e9831e8..f56ebee0a4bf0 100644 --- a/develop/dev-guide-choose-driver-or-orm.md +++ b/develop/dev-guide-choose-driver-or-orm.md @@ -273,6 +273,15 @@ For an example of using MySQL Connector/Python to build a TiDB application, see ### Python ORM frameworks +
+ +Support level: **Full** + +[Django](https://docs.djangoproject.com/) is a popular Python web framework. To solve the compatibility issue between TiDB and Django, PingCAP provides a TiDB dialect `django-tidb`. To install it, you can see the [`django-tidb` documentation](https://github.com/pingcap/django-tidb#installation-guide). + +For an example of using Django to build a TiDB application, see [Connect to TiDB with Django](/develop/dev-guide-sample-application-python-django.md). + +
Support level: **Full** @@ -288,7 +297,7 @@ Support level: **Compatible** [peewee](http://docs.peewee-orm.com/en/latest/) is a popular ORM framework for Python. To get all dependencies in your application, you can use the `pip install peewee==3.15.4` command. It is recommended to use peewee 3.15.4 or later versions. -For an example of using peewee to build a TiDB application, see [Build a simple CRUD app with TiDB and peewee](/develop/dev-guide-sample-application-python-peewee.md#step-2-get-the-code). +For an example of using peewee to build a TiDB application, see [Connect to TiDB with peewee](/develop/dev-guide-sample-application-python-peewee.md#step-2-get-the-code).