I recently upgraded my Django project to version 1.9.
When I try to run migrate
, I am getting the following two errors:
Support for stri
You should remove the quotes around views name. So your code will be like that
urlpatterns = patterns('',
url(r'^about/$', app.views.about, #without quote!
name='about'),
)
Point 2, use lists, so your code will transform to
urlpatterns = [
url(r'^about/$', app.views.about, #without quote!
name='about'),
]