fixed google outh error

This commit is contained in:
karthikmurakonda 2022-09-11 23:59:14 +05:30
parent 61bccc10bd
commit 004773f3ce
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
import os
BRANCH_CHOICES = [
["CSE", "CSE"],
["EE", "EE"],
@ -36,7 +39,7 @@ TOTAL_BRANCHES = 4 # Total No of Branches
TOTAL_BATCHES = 4 # Total No of Batches
# To be Configured Properly
CLIENT_ID = "956830229554-290mirc16pdhd5j7ph7v7ukibo4t1qcp.apps.googleusercontent.com" # Google Login Client ID
CLIENT_ID = os.environ.get("GOOGLE_OAUTH_CLIENT_ID") # "client_id"
# To be Configured Properly
PLACEMENT_OPENING_URL = "http://localhost:3000/student/dashboard/placements/{id}" # On frontend, this is the URL to be opened

View File

@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'e_i2g3z!y4+p3dwm%k9k=zmsot@aya-0$mmetgxz4mp#8_oy#*'
SECRET_KEY = os.getenv("GOOGLE_OAUTH_SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True