I am following How to sign in with the Google+ API using Django? to use Google Sign In for my Django app. I am on the step that says
Add the SOCIAL_AUTH_GOOGLE_OAUTH2_KEY and SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET settings with the client key and secret you created earlier.
I am wary of adding these directly to settings.py
because they will then be committed to my git repo. How can I make these values available in my app without exposing them unnecessarily?
I think environment variables are common for this purpose. I also see that I can download a JSON file from my Google Developer Console.