Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No request passing into obj_create in UserResource at resource.py #1

Open
titanjer opened this issue Feb 17, 2013 · 0 comments
Open

Comments

@titanjer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant