- Django RESTful Web Services
- Gaston C. Hillar
- 186字
- 2021-06-30 19:30:58
Test your knowledge
- In Django REST framework, serializers are:
- Mediators between the view functions and Python primitives
- Mediators between the URLs and view functions
- Mediators between the model instances and Python primitives
- If we want to create a simple Toy model that we will use to represent and persist toys in Django REST framework, we can create:
- A Toy class as a subclass of the djangorestframework.models.Model class
- A Toy class as a subclass of the django.db.models.Model class
- A Toy function in the restframeworkmodels.py file
- In Django REST framework, parsers and renderers:
- Handle as mediators between model instances and Python primitives
- Handle as mediators between Python primitives and HTTP requests and responses
- Handle as mediators between the view functions and Python primitives.
- Which of the following commands starts the Django shell?
- python manage.py shell
- python django.py shell
- django shell
- If we have a Django application named computers and a model called memory, what is the name of the table that Django's ORM will create to persist the model in the database?
- computers_memories
- memory_computers
- computers_memory
The rights answers are included in the Appendix, Solutions.
推薦閱讀
- Advanced Machine Learning with Python
- 國(guó)際大學(xué)生程序設(shè)計(jì)競(jìng)賽中山大學(xué)內(nèi)部選拔真題解(二)
- Computer Vision for the Web
- Mastering ServiceStack
- 單片機(jī)C語(yǔ)言程序設(shè)計(jì)實(shí)訓(xùn)100例:基于STC8051+Proteus仿真與實(shí)戰(zhàn)
- Python自動(dòng)化運(yùn)維快速入門(mén)
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- YARN Essentials
- Linux命令行與shell腳本編程大全(第4版)
- Learning jQuery(Fourth Edition)
- Quantum Computing and Blockchain in Business
- Deep Learning for Natural Language Processing
- Python高性能編程(第2版)
- 讀故事學(xué)編程:Python王國(guó)歷險(xiǎn)記
- Python深度學(xué)習(xí)與項(xiàng)目實(shí)戰(zhàn)