1、 argument to reversed() must be a sequence
如果参数正确,出现这个的错误应该为应用app的urls书写错误。我的错误是 把方括号写成了 花括号
from django.conf.urls import url
from . import views
urlpatterns = [ # 注意是方括号
url(r'^register/$', views.register, name='register'),
url(r'^register_handle/$', views.register_handle, name='register_handle'),
url(r'^login/$', views.login, name='login'),
]
网友评论