尝试为表单提交执行 ajax 请求,但不断收到上述错误。
我的网址.py
urlpatterns += patterns('',
url(r'^register-me/$', 'registerMe', name='registerMe'),
)
我的观点.py
def registerMe(request):
inviteeEmail = 'ryan@nenvy.com'
inviteeName = 'ryan'
异常数据
Traceback:
File "/Users/psdstaff/Projects/project/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
Exception Type: TypeError at /register-me/
Exception Value: 'str' object is not callable
Request information:
GET:
name = u'asdf'
email = u'asdf'