- Django 2 by Example
- Antonio Melé
- 135字
- 2021-06-25 21:19:00
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/.
- EJB 3.1從入門到精通
- 物聯(lián)網(wǎng)網(wǎng)絡(luò)安全及應(yīng)用
- Building Django 2.0 Web Applications
- Spring Cloud微服務(wù)架構(gòu)進階
- PLC、現(xiàn)場總線及工業(yè)網(wǎng)絡(luò)實用技術(shù)速成
- Wireshark網(wǎng)絡(luò)分析就這么簡單
- React:Cross-Platform Application Development with React Native
- 城域網(wǎng)與廣域網(wǎng)(第2版)
- 基于性能的保障理論與方法
- 網(wǎng)絡(luò)環(huán)境中基于用戶視角的信息質(zhì)量評價研究
- 新手易學(xué):新手學(xué)淘寶開店
- Android UI Design
- 互聯(lián)網(wǎng)安全的40個智慧洞見(2016)
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 區(qū)塊鏈社區(qū)運營手冊