1 from forum.settings import EXT_KEYS_SET
2 from forum.settings.base import Setting
3 from django.utils.translation import ugettext_lazy as _
5 TWITTER_CONSUMER_KEY = Setting('TWITTER_CONSUMER_KEY', '', EXT_KEYS_SET, dict(
6 label = _("Twitter consumer key"),
8 Get this key at the <a href="http://twitter.com/apps/">Twitter apps</a> to enable
9 authentication in your site through Twitter.
13 TWITTER_CONSUMER_SECRET = Setting('TWITTER_CONSUMER_SECRET', '', EXT_KEYS_SET, dict(
14 label = _("Twitter consumer secret"),
16 This your Twitter consumer secret that you'll get in the same place as the consumer key.
20 TWITTER_AUTO_CALLBACK_REDIRECT = Setting('TWITTER_AUTO_CALLBACK_REDIRECT', True, EXT_KEYS_SET, dict(
21 label = _("Twitter auto-callback redirect"),
23 Automatically redirect to the Twitter authentication done page, pass the oauth_callback parameter.