Let's see whether you can answer the following questions correctly:
- The urlpatterns list declared in the urls.py file makes it possible to:
- Route URLs to Django models
- Route URLs to Django views
- Route URLs to Python primitives
- When the Django server receives an HTTP request, Django creates an instance of which of the following classes?
- django.restframework.HttpRequest
- django.http.HttpRequest
- django.http.Request
- A view function has to return an instance of which of the following classes?
- django.http.HttpResponse
- django.http.Response
- django.restfremework.HttpResponse
- Whenever you have to return a specific status different from the default 200 OK status, it is a good practice to use the module variables defined ...