index view

The index view is a Python function that accepts the request data and redirects it to the arena view, with a decorator (require_http_methods) prior to restricting the HTTP requests allowed:

@require_http_methods(["GET", "POST"])def index(request):    return redirect(arena)

Get Mastering Geospatial Analysis with Python 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.