Moved google creds to .env

This commit is contained in:
Ojakoo
2022-07-31 16:28:57 +03:00
parent 3f6a719e9d
commit 72e91e3d62
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -15,6 +15,7 @@ import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from sikweb.base import *
from datetime import timedelta
import json
load_dotenv() # loads the configs from .env
@@ -81,6 +82,7 @@ DATABASES = {
# Google api settings
GROUP_KEY = os.getenv("GROUP_KEY", "")
GOOGLE_SERVICE_ACCOUNT = json.loads(os.getenv("GOOGLE_CREDS_JSON", ""))
# JWT authentication
SIMPLE_JWT = {