Skip to content

Instantly share code, notes, and snippets.

@gnarizzy

gnarizzy/keys.py Secret

Created June 23, 2016 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnarizzy/d4d56af25f354214d90f7712d537ffa9 to your computer and use it in GitHub Desktop.
Save gnarizzy/d4d56af25f354214d90f7712d537ffa9 to your computer and use it in GitHub Desktop.
Circa keys.py, for all API keys
import circa.settings
# Simple script for Stripe keys so it's easier to switch between test and production keys. More secure since this file
# isn't under version control.
def secret_key():
if circa.settings.DEBUG:
return #STRIPE TEST SECRET KEY
else:
return #STRIPE LIVE SECRET KEY
def public_key():
if circa.settings.DEBUG:
return #STRIPE TEST PUBLIC KEY
else:
return #STRIPE LIVE PUBLIC KEY
# Stripe Connect Keys:
def test_client_id():
return #STRIPE CONNECT TEST KEY
def client_id():
return #STRIPE CONNECT LIVE KEY
# Keys for Mandrill access. The test key is to be used solely in the test suite.
def mandrill_key():
return #MANDRILL LIVE KEY
def mandrill_test_key():
return #MANDRILL TEST KEY
# Keys for Facebook integration.
def facebook_app_id():
return #FACEBOOK APP ID
def facebook_app_secret():
return #FACEBOOK APP SECRET
# NOTE: These keys will ONLY work on localhost. They are not compatible with the pythonanywhere domain.
def facebook_test_app_id():
return #FACEBOOK TEST APP ID
def facebook_test_app_secret():
return #FACEBOOK TEST APP SECRET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment