Test your knowledge
Let's see whether you can answer the following questions correctly.
- The
permissions.SAFE_METHODS
tuple of string includes the following HTTP methods or verbs that are considered safe:'GET'
,'HEAD'
, and'OPTIONS'
'POST'
,'PATCH'
, and'OPTIONS'
'GET'
,'PUT'
, and'OPTIONS'
- Which of the following settings key in the
REST_FRAMEWORK
dictionary specifies the global setting with a tuple of string whose values indicate the classes that we want to use for authentication?'GLOBAL_AUTHENTICATION_CLASSES'
'DEFAULT_AUTHENTICATION_CLASSES'
'REST_FRAMEWORK_AUTHENTICATION_CLASSES'
- Which of the following is the model that persists a Django user?
Django.contrib.auth.DjangoUser
Django.contrib.auth.User
Django.rest-framework.User
- Which of the following classes is the base class from which all customized permission classes should inherit to work with the Django REST framework?
Django.contrib.auth.MainPermission
rest_framework.permissions.MainPermission
rest_framework.permissions.BasePermission
- In order...