- 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.
推薦閱讀
- 軟件安全技術
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- HTML5 Mobile Development Cookbook
- Functional Programming in JavaScript
- PLC編程及應用實戰
- Python機器學習經典實例
- C語言程序設計學習指導與習題解答
- OpenStack Orchestration
- Integrating Facebook iOS SDK with Your Application
- C語言程序設計
- Mastering Xamarin.Forms(Second Edition)
- Android玩家必備
- 零基礎學C語言第2版
- Creating Data Stories with Tableau Public
- Kotlin Programming By Example