Also, I seem to be unable to login on localhost. Whenever I click login, I get an error screen which says:
IntegrityError at /oauth/callback/ (1062, "Duplicate entry '64010842' for key 'username'")
I tried finding out where this error is coming from, but couldn't find anything that could have caused this. A possible origin seems be the _get_and_update_user_from_identity function at /TWLight/users/oauth.py, line 138, but I don't exactly know how is that causing the error.