Monday, 24 June 2019

ImportError: cannot import name 'patterns' from 'django.conf.urls'

pattern is removed from 1.8+ DJango version

You can write

from django.conf.urls import include, url

urlpatterns = [
.
.
.
]

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

TypeError: argument of type 'WindowsPath' is not iterable

 Please make to modify settings.py file: DATABASES = { 'default' : { 'ENGINE' : 'django.db.backends.sqlite3&...