2
嘗試對錶單提交執行ajax請求,但仍然收到上述錯誤。Django'str'對象在表單提交時無法調用
我的urls.py
urlpatterns += patterns('',
url(r'^register-me/$', 'registerMe', name='registerMe'),
)
我views.py
def registerMe(request):
inviteeEmail = '[email protected]'
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'
possible dup http://stackoverflow.com/questions/4668040/django-str-object-is-not-callable?rq=1 – 2013-03-12 23:40:27