from django.core.urlresolvers import reverse code example
Example 1: ModuleNotFoundError: No module named 'django.core.urlresolvers'
from django.urls import reverse
Example 2: django reverse
from django.urls import reverse
def myview(request):
return HttpResponseRedirect(reverse('arch-summary', args=[1945]))