Test your knowledge
Let's see whether you can answer the following questions correctly:
- After we activate a virtual environment, all the packages we install with
pip
are available:- For all the virtual environments available in the computer or device that is running Python
- Only for the activated virtual environment
- For all the virtual environments created by the current user
- HTTPie is a:
Command-line HTTP server written in Python that makes it easy to create a RESTful Web Server
- Command-line utility that allows us to run queries against an SQLite database
- Command-line HTTP client written in Python that makes it easy to compose and send HTTP requests
- Which of the following commands creates a new app named
books
in Django?django startapp books
python django.py startapp books
python manage.py startapp books
- In Django, a subclass of which of the following classes represents a Django application and its configuration?
-
django.apps.AppConfig
django.application.configuration
django.config.App
-
- Which of the following strings must be added to the
INSTALLED_APPS
string list in thesettings.py
file to enable Django REST framework?'rest_framework'
'django_rest_framework'
'Django_REST_framework'
The rights answers are included in the Appendix, Solutions.