You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"error_message": "'NoneType' object has no attribute 'session'",
"traceback": ".........
File "/home/jmlin/projects/cpi_api/venv/local/lib/python2.7/site-packages/tastypie_user-0.0.1-py2.7.egg/tastypie_user/resources.py", line 107, in obj_create
auth.login(request, user)\n\n
File "/home/jmlin/projects/cpi_api/venv/local/lib/python2.7/site-packages/django/contrib/auth/init.py", line 64, in login
if SESSION_KEY in request.session:\n\nAttributeError: 'NoneType' object has no attribute 'session'\n"
}
Hi there!
I got this error below and find the answer maybe after googling. please refer to No request passing into obj_create in ModelResource. it's weird for the tastypie API!
{
"error_message": "'NoneType' object has no attribute 'session'",
"traceback": ".........
File "/home/jmlin/projects/cpi_api/venv/local/lib/python2.7/site-packages/tastypie_user-0.0.1-py2.7.egg/tastypie_user/resources.py", line 107, in obj_create
auth.login(request, user)\n\n
File "/home/jmlin/projects/cpi_api/venv/local/lib/python2.7/site-packages/django/contrib/auth/init.py", line 64, in login
if SESSION_KEY in request.session:\n\nAttributeError: 'NoneType' object has no attribute 'session'\n"
}
$ pip freeze
Django==1.4.3
django-tastypie==0.9.13-beta
...
tastypie-user==0.0.1
The text was updated successfully, but these errors were encountered: