django reverse

from django.urls import reverse

def myview(request):
    return HttpResponseRedirect(reverse('arch-summary', args=[1945]))

Here is what the above code is Doing:
1. It’s creating a view called myview.
2. It’s returning an HttpResponseRedirect object.
3. It’s using the reverse function to get the URL for the view named ‘arch-summary’.
4. It’s passing in the year 1945 as the first argument to the view.