<s> try : <EOL> from django . conf import settings <EOL> dir ( settings ) <EOL> except ImportError : <EOL> import os <EOL> class settings ( object ) : <EOL> TWITTER_KEY = os . environ . get ( '<STR_LIT>' ) <EOL> TWITTER_SECRET = os . environ . get ( '<STR_LIT>' ) <EOL> TWITTER_REDIRECT_URL = os . environ . get ( '<STR_LIT>' ) <EOL> import warnings <EOL> import urllib <EOL> KEY = getattr ( settings , '<STR_LIT>' , None ) <EOL> SECRET = getattr ( settings , '<STR_LIT>' , None ) <EOL> REDIRECT_URL = getattr ( settings , '<STR_LIT>' , None ) <EOL> if not all ( [ KEY , SECRET , REDIRECT_URL ] ) : <EOL> warnings . warn ( "<STR_LIT>" , ImportWarning ) <EOL> BASE_URL = '<STR_LIT>' <EOL> INSECURE_URL = '<STR_LIT>' </s>
