django 2.2 reverse_lazy code example
Example 1: django reverse
from django.urls import reverse
def myview(request):
return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
Example 2: import reverse_lazy
from django.urls import reverse_lazy