Skip to content

Instantly share code, notes, and snippets.

@acarmisc
Created March 5, 2014 00:19
Show Gist options
  • Save acarmisc/9358689 to your computer and use it in GitHub Desktop.
Save acarmisc/9358689 to your computer and use it in GitHub Desktop.
def localstoreSettings(self):
db_url = os.environ['OPENSHIFT_MONGODB_DB_URL']
app_name = os.environ['OPENSHIFT_APP_NAME']
data = {'db_url': db_url, 'app_name': app_name}
return data
def amazonSettings(self):
key = os.environ['AMAZON_KEY']
secret = os.environ['AMAZON_SECRET']
code = os.environ['AMAZON_CODE']
data = {'key': key,
'secret': secret,
'code': code
}
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment