python oauthlib: in escape ValueError “Only unicode objects are escapable”
问题 I'm using python-social-auth to login with social networks from my Django application. On my local machine everything works fine, but when I deploy to a server I get the following error: oauthlib.oauth1.rfc5849.utils in escape ValueError: Only unicode objects are escapable. Got None of type <type 'NoneType'>. Stacktrace: File "django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "social/apps/django_app/utils.py",