Test your knowledge
Let's see whether you can answer the following questions correctly.
- The
permissions.SAFE_METHODStuple 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_FRAMEWORKdictionary 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.DjangoUserDjango.contrib.auth.UserDjango.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.MainPermissionrest_framework.permissions.MainPermissionrest_framework.permissions.BasePermission
- In order...