1缆蝉、 argument to reversed() must be a sequence
如果參數(shù)正確谒麦,出現(xiàn)這個(gè)的錯(cuò)誤應(yīng)該為應(yīng)用app的urls書寫錯(cuò)誤。我的錯(cuò)誤是 把方括號(hào)寫成了 花括號(hào)
from django.conf.urls import url
from . import views
urlpatterns = [ # 注意是方括號(hào)
url(r'^register/$', views.register, name='register'),
url(r'^register_handle/$', views.register_handle, name='register_handle'),
url(r'^login/$', views.login, name='login'),
]