December 2018
Intermediate to advanced
500 pages
12h 33m
English
In the previous chapter, we took advantage of the pagination features available in Django REST Framework to specify how we wanted large results sets to be split into individual pages of data. However, we have always been working with the entire queryset as the result set; that is, we didn't apply any filter.
Open the settings.py file in the games_service/games_service folder. Add the following highlighted lines after the first line that declares the dictionary named REST_FRAMEWORK to add the new 'DEFAULT_FILTER_BACKENDS' setting key. Don't remove the lines ...