-
-
Save gnarizzy/d4d56af25f354214d90f7712d537ffa9 to your computer and use it in GitHub Desktop.
Circa keys.py, for all API keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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