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
Import your views directly, or your views modules:
from apps.views import about
from accounts import views as account_views
Do not use patterns
at all, just use a list or tuple:
urlpatterns = [
url(r'^about/$', about,
name='about'),
]
urlpatterns += [
url(r'^signin/$', account_views.auth_login,
name='login'),
]