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

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.
主站蜘蛛池模板: 平乐县| 鹿泉市| 姚安县| 侯马市| 乌拉特后旗| 湛江市| 怀远县| 栾川县| 获嘉县| 固镇县| 巴楚县| 桂东县| 韶关市| 睢宁县| 阳泉市| 和田市| 桂阳县| 子长县| 泾阳县| 汶上县| 镇原县| 牡丹江市| 桃园市| 曲阜市| 遵义市| 铁岭市| 望城县| 新和县| 焉耆| 志丹县| 牡丹江市| 颍上县| 隆回县| 丰城市| 烟台市| 信宜市| 信丰县| 永修县| 涡阳县| 绩溪县| 东乌|