1👍
✅
It’s in the tutorial.
urlpatterns = [
url(r'^(?P<page>\d+)\.html$', views.display)
]
…
def display(request, page):
verify(page) # Implementation left as an exercise for the reader
return render(request, '{}.html'.format(page))
Source:stackexchange.com