From bcd3e8dfa62fe9ca8dcf33f1a15981b2047a24b2 Mon Sep 17 00:00:00 2001 From: gyan7 Date: Tue, 1 Nov 2022 23:09:30 +0530 Subject: [PATCH] hide secret keys --- WhatsappBOT/WhatsappBOT/settings.py | 5 ++--- WhatsappBOT/bot/views.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WhatsappBOT/WhatsappBOT/settings.py b/WhatsappBOT/WhatsappBOT/settings.py index a805a17..6e9e435 100644 --- a/WhatsappBOT/WhatsappBOT/settings.py +++ b/WhatsappBOT/WhatsappBOT/settings.py @@ -20,13 +20,12 @@ # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-=r$=iavk&j$bwp33z^!^px=y@fuxkt2n!w8+41)d@hhlk##s(q' +SECRET_KEY = '*********************************' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['https://c2a8-2a09-bac1-36c0-5f70-00-ca-81.in.ngrok.io', -'http://127.0.0.1:8000/','localhost','127.0.0.1','82bf-2a09-bac1-36c0-5f70-00-ca-81.in.ngrok.io'] +ALLOWED_HOSTS = ['localhost'] # Application definition diff --git a/WhatsappBOT/bot/views.py b/WhatsappBOT/bot/views.py index 01a87b2..a77a64a 100644 --- a/WhatsappBOT/bot/views.py +++ b/WhatsappBOT/bot/views.py @@ -10,7 +10,7 @@ from googleapiclient.discovery import build -api_key="AIzaSyDsodmmoqOzxcaOpfHB2yaV2SVwgpmdzLA" #google custom search api key +api_key="********************************" #google custom search api key