Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 507 Bytes
import logging
# this function allows you to simultaneously run the application on multiple domains
# (such as the default application-name.appspot.com domain as well as your own www.somedomain.com)
def get_oauth_consumer_secret_for_domain(domain):
if domain == 'FIRST DOMAIN':
return 'CORRESPONDING CONSUMER SECRET'
elif domain == 'SECOND DOMAIN':
return 'CORRESPONDING CONSUMER SECRET'
else:
logging.error('No Foursquare OAuth consumer secret found for domain ' + domain)
return ''