官术网_书友最值得收藏!

Working with QuerySet and managers

Now that you have a fully functional administration site to manage your blog's content, it's time to learn how to retrieve information from the database and interact with it. Django comes with a powerful database abstraction API that lets you create, retrieve, update, and delete objects easily. The Django Object-relational mapper is compatible with MySQL, PostgreSQL, SQLite, and Oracle. Remember that you can define the database of your project in the DATABASES setting of your project's settings.py file. Django can work with multiple databases at a time, and you can program database routers to create custom routing schemes.

Once you have created your data models, Django gives you a free API to interact with them. You can find the data model reference of the official documentation at https://docs.djangoproject.com/en/2.0/ref/models/.

主站蜘蛛池模板: 寿宁县| 夹江县| 孟连| 通江县| 措美县| 正阳县| 新丰县| 怀集县| 将乐县| 山西省| 元朗区| 谢通门县| 惠州市| 永清县| 塔城市| 进贤县| 曲靖市| 郎溪县| 普格县| 海林市| 扶风县| 汤原县| 梁平县| 准格尔旗| 琼海市| 甘谷县| 昌江| 拜泉县| 微博| 平湖市| 济阳县| 剑河县| 阆中市| 苍梧县| 广南县| 贵阳市| 乡城县| 彭山县| 江津市| 紫金县| 隆昌县|