Upgrading PY/Django - stuck at URL Path


#1

Bought the first version of HWA and after a few years looking to redo my old app. Learned I need to upgrade python and django so I did that. Upgraded all the installed apps in settings.

I’m now switching the urls to “path” and I keep getting an error in terminal:

File “/Users/user/project/app/app/urls.py”, line 1, in
from django.conf.urls import path, include
ImportError: cannot import name ‘path’

I’m using Django 2.1.5
Python 3.6

Is there a step I might have skipped unknowingly?


#2

Use from django.urls import path instead. :)