Book-TDD-Web-Dev-Python icon indicating copy to clipboard operation
Book-TDD-Web-Dev-Python copied to clipboard

ch17|023 - Replace import to enable easier migration to Django 2

Open HelloThisIsFlo opened this issue 5 years ago • 0 comments

Instead of importing

from django.core.urlresolvers import reverse

we could import

from django.urls import reverse

Importing from urlresolvers is only kept for backwards compatibility, and it isn't working in Django 2.0 anymore.
See: https://docs.djangoproject.com/en/1.11/ref/urlresolvers/

HelloThisIsFlo avatar Nov 16 '19 10:11 HelloThisIsFlo