When I send a HTTP POST request to create an access token for a user, with parameters client_id, client_secret, username, password etc., to my localhost which has Django (v1.7) running, I get an access token in response.
But when I do the same to Django (v1.7) deployed on Elastic Beanstalk, I get
TypeError at /oauth2/access_token
__init__() got an unexpected keyword argument 'mimetype'
I used to get this error earlier when I was using Django 1.8 but then I downgraded to Django 1.7 and this error got resolved. This all was done locally, in localhost. But when I deployed to beanstalk, I again get this error even though the version deployed there is 1.7.