<s> import os <EOL> from django . conf import settings <EOL> USING_SOCIAL_LOGIN = getattr ( settings , '<STR_LIT>' , False ) <EOL> if USING_SOCIAL_LOGIN : <EOL> SOCIALOAUTH_SITES = settings . SOCIALOAUTH_SITES <EOL> else : <EOL> SOCIALOAUTH_SITES = None <EOL> AVATAR_DIR = settings . AVATAR_DIR <EOL> AVATAR_UPLOAD_DIR = getattr ( settings , '<STR_LIT>' , AVATAR_DIR ) <EOL> DEFAULT_AVATAR = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) <EOL> if not os . path . isdir ( AVATAR_DIR ) : <EOL> os . mkdir ( AVATAR_DIR ) <EOL> if not os . path . isdir ( AVATAR_UPLOAD_DIR ) : <EOL> os . mkdir ( AVATAR_UPLOAD_DIR ) <EOL> AVATAR_URL_PREFIX = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) <EOL> AVATAR_UPLOAD_URL_PREFIX = getattr ( settings , '<STR_LIT>' , AVATAR_URL_PREFIX ) <EOL> AVATAR_UPLOAD_MAX_SIZE = getattr ( settings , '<STR_LIT>' , <NUM_LIT:5> ) <EOL> AVATAR_RESIZE_SIZE = getattr ( settings , '<STR_LIT>' , <NUM_LIT:50> ) <EOL> AVATAR_SAVE_FORMAT = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) <EOL> AVATAR_SAVE_QUALITY = getattr ( settings , '<STR_LIT>' , <NUM_LIT> ) <EOL> MAX_EMAIL_LENGTH = getattr ( settings , '<STR_LIT>' , <NUM_LIT> ) <EOL> MAX_USERNAME_LENGTH = getattr ( settings , '<STR_LIT>' , <NUM_LIT:12> ) <EOL> SOCIAL_LOGIN_DONE_REDIRECT_URL = getattr ( settings , '<STR_LIT>' , '<STR_LIT:/>' ) <EOL> SOCIAL_LOGIN_ERROR_REDIRECT_URL = getattr ( settings , '<STR_LIT>' , '<STR_LIT:/>' ) </s>
