-
Notifications
You must be signed in to change notification settings - Fork 663
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
Problem with login. #37
Comments
In my demo version this works fine - in settings.py I have added these lines:
I think you may just need the TokenAuthentication, as in |
Thanks @jmb . But error still presents. I have a clean demo(or with your modifications), and if login credentials are correct I receive this error. |
I just tried the clean demo from the master branch and (apart from adding the rest_verify_email fix so I can verify my test user's email) it works fine for me - even without the settings entries, I get back a key/token. Weird.
|
I will try another computer and OS, maybe there I'll find luck =) |
I had the same issue. And the answer I found (after 2 hours of angriness =)) in "install_requires", here >>> 'djangorestframework>=2.3.13, <3.0'. It means: don't use 3+ version of Django REST Framework. You are welcome! =) |
@mariposa8 thank you so much, using |
thank you so much, using djangorestframework <3.0 helped. |
Anyone have any idea what's causing this in 3.0? |
Made this fix myself, seems to be working fine but I need to do more testing. |
I'm trying using http://127.0.0.1:8000/rest-auth/login/ to login myself into the system but error always showes up.
This error
'LoginSerializer' object has no attribute 'object'
also is in Demo.The text was updated successfully, but these errors were encountered: