firstwe define the url for the topics page it' common to choose simple url fragment that reflects the kind of information presented on the page we'll use the word topicsso the url will return this page here' how we modify learning_logs/urls pyurls py """defines url patterns for learning_logs ""--snip-urlpatterns home page url( '^$'views indexname='index')show all topics url( '^topics/$'views topicsname='topics') we've simply added topicsinto the regular expression argument used for the home page url when django examines requested urlthis pattern will match any url that has the base url followed by topics you can include or omit forward slash at the endbut there can' be anything else after the word topicsor the pattern won' match any request with url that matches this pattern will then be passed to the function topics(in views py the topics view the topics(function needs to get some data from the database and send it to the template here' what we need to add to views pyviews py from django shortcuts import render from models import topic def index(request)--snip- def topics(request)"""show all topics "" topics topic objects order_by('date_added' context {'topics'topicsy return render(request'learning_logs/topics html'contextwe first import the model associated with the data we need the topics(function needs one parameterthe request object django received from the server at we query the database by asking for the topic objectssorted by the date_added attribute we store the resulting queryset in topics getting started with django