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

Test your knowledge

Let's see whether you can answer the following questions correctly:

  1. After we activate a virtual environment, all the packages we install with pip are available:
    1. For all the virtual environments available in the computer or device that is running Python
    2. Only for the activated virtual environment
    3. For all the virtual environments created by the current user
  2. 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
  3. Which of the following commands creates a new app named books in Django?
    1. django startapp books
    2. python django.py startapp books
    3. python manage.py startapp books
  4. In Django, a subclass of which of the following classes represents a Django application and its configuration?
    1.  django.apps.AppConfig
    2. django.application.configuration
    3. django.config.App
  5. Which of the following strings must be added to the INSTALLED_APPS string list in the settings.py file to enable Django REST framework?
    1. 'rest_framework'
    2. 'django_rest_framework'
    3. 'Django_REST_framework'

The rights answers are included in the Appendix, Solutions.

主站蜘蛛池模板: 凤翔县| 金乡县| 遂宁市| 彝良县| 勐海县| 洞头县| 永泰县| 汕头市| 洛阳市| 青州市| 乳山市| 民丰县| 略阳县| 昌黎县| 兰坪| 文登市| 罗田县| 绍兴市| 民乐县| 双牌县| 兰西县| 平顶山市| 陇西县| 满洲里市| 金寨县| 清水县| 彭阳县| 灌云县| 湖南省| 黄骅市| 天门市| 武定县| 汕头市| 上饶县| 双桥区| 石屏县| 巴马| 赣榆县| 综艺| 清原| 蕉岭县|