Skip to content

Instantly share code, notes, and snippets.

@Compro-Prasad
Last active February 18, 2018 14:43
Show Gist options
  • Save Compro-Prasad/a0ab288af13b10912ed4d45a4b593542 to your computer and use it in GitHub Desktop.
Save Compro-Prasad/a0ab288af13b10912ed4d45a4b593542 to your computer and use it in GitHub Desktop.
Django Social Auth for Mysql Innodb engines which don't allow more than 767 field length
# http://python-social-auth.readthedocs.io/en/latest/configuration/settings.html?highlight=SOCIAL_AUTH_UID_LENGTH#tweaking-some-fields-length
# Thanks to knbk on #django freenode IRC
SOCIAL_AUTH_UID_LENGTH = 190
SOCIAL_AUTH_NONCE_SERVER_URL_LENGTH = 190
SOCIAL_AUTH_ASSOCIATION_SERVER_URL_LENGTH = 190
SOCIAL_AUTH_ASSOCIATION_HANDLE_LENGTH = 190
SOCIAL_AUTH_EMAIL_LENGTH = 190 # More than 190 is very rare to be used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment