84👍
✅
You’re on Django 1.9, you should do:
from django.core.urlresolvers import reverse
Starting with version 1.10 (including Django 2.0) is where you get to do from django.urls import reverse
Source:stackexchange.com