14.2 A Word about URLs: Query versus Path

The reason we are building the Tag and Startup pagination URLs in two different ways is that clients and managers may ask you to paginate in either of the two ways. It is thus helpful to understand each way of implementing pagination.

However, from a purists’ approach, one of these methods is awful. In the event that you need to make the decision of how to encode pagination for yourself, the information in this section will ensure you understand your choice.

The structure of a URL, as outlined in Chapter 1, is

scheme : // network_location / path [? query] [# fragment]

The browser uses the scheme and network location to contact a server. Once contacted, the browser asks the ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.