Skip to content

Commit

Permalink
develop: include Django in Python ORM (#14748)
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 authored Sep 7, 2023
1 parent 161ee7d commit 6e6cf12
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion develop/dev-guide-choose-driver-or-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@ For an example of using MySQL Connector/Python to build a TiDB application, see
### Python ORM frameworks

<SimpleTab>
<div label="Django">

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).

</div>
<div label="SQLAlchemy">

Support level: **Full**
Expand All @@ -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).

</div>
</SimpleTab>
Expand Down

0 comments on commit 6e6cf12

Please sign in to comment.