def get_auth_settings():
 from mezzanine.conf import settings
 try:
  auth_settings = (settings.TWITTER_CONSUMER_KEY, settings.TWITTER_CONSUMER_SECRET, settings.TWITTER_ACCESS_TOKEN_KEY, settings.TWITTER_ACCESS_TOKEN_SECRET)
 except AttributeError:
  return None
 else:
  return (auth_settings if all(auth_settings) else None)

def get_auth_settings ( ) : from mezzanine . conf import settings try : auth_settings = ( settings . TWITTER_CONSUMER_KEY , settings . TWITTER_CONSUMER_SECRET , settings . TWITTER_ACCESS_TOKEN_KEY , settings . TWITTER_ACCESS_TOKEN_SECRET ) except AttributeError : return None else : return ( auth_settings if all ( auth_settings ) else None )
returns all the key/secret settings for twitter access .