Unauthorized.message

login

#1

i used to be able to login but then i needed to change the permission of my application (from read and write to read only)so i changed,regenerated a new access token and changed the old token in my settings file.Now when i try to login it gives 401 error Unauthorized message 32 could not authenticate you.
auth_props = twitter.get_authentication_tokens(callback_url) .
i’m using twython in my django application.
Please could anyone help me