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

Test your knowledge

  1. If we want to create a simple Player model that we will use to represent and persist players in Django REST framework, we can create:
    1.  A Player class as a subclass of the djangorestframework.models.Model class.
    2.  A Player class as a subclass of the django.db.models.Model class.
    3.  A Player function in the restframeworkmodels.py file.
  2. In the Django REST Framework, serializers are:
    1. Mediators between the model instances and Python primitives.
    2. Mediators between the view functions and Python primitives.
    3. Mediators between the URLs and view functions.
  3. In the Django REST Framework, parsers and renderers:
    1. Handle as mediators between model instances and Python primitives.
    2. Reset the board.
    3. Handle as mediators between Python primitives and HTTP requests and responses.
  4. The urlpatterns list declared in the urls.py file makes it possible to:
    1.  Route URLs to views.
    2.  Route URLs to models.
    3.  Route URLs to Python primitives.
  5. HTTPie is a:
    1. Command-line HTTP server written in Python that makes it easy to create a RESTful Web Server.
    2. Command-line utility that allows us to run queries against an SQLite database.
    3. Command-line HTTP client written in Python that makes it easy to compose and send HTTP requests.
主站蜘蛛池模板: 衡南县| 达尔| 达尔| 安平县| 司法| 义乌市| 天全县| 遂宁市| 新乡市| 高州市| 柳江县| 石景山区| 云南省| 台东县| 抚松县| 伊春市| 西宁市| 鄯善县| 台湾省| 攀枝花市| 通山县| 甘孜县| 成武县| 陇川县| 宜宾市| 万年县| 通道| 霍山县| 临邑县| 印江| 策勒县| 同德县| 宿松县| 辉县市| 离岛区| 株洲市| 华宁县| 蓬莱市| 靖远县| 宁武县| 云安县|