Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 585 Bytes
import os
EMAIL_UNSUBSCRIBE_SALT = 'abc'
CLIENT_ID = ''
CLIENT_SECRET = ''
ON_PRODUCTION = os.environ['SERVER_SOFTWARE'].startswith('Google App Engine') # http://stackoverflow.com/questions/1916579/in-python-how-can-i-test-if-im-in-google-app-engine-sdk
SEARCH_STATS_URL = '' # Leave empty to disable search stats
if ON_PRODUCTION:
REDIRECT_URL = 'http://www.youtify.com/flattrback'
LASTFM_REDIRECT_URL = 'http://www.youtify.com/lastfm/callback'
else:
REDIRECT_URL = 'http://localhost:8080/flattrback'
LASTFM_REDIRECT_URL = 'http://localhost:8080/lastfm/callback'
Something went wrong with that request. Please try again.