From 26c0ca77925bb91666db6ca5c2d7c54b44e18af9 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 11 May 2022 15:51:11 +0200 Subject: [PATCH] Remove unused env variables --- Pipfile | 1 - server/.env.example | 5 ----- server/.env.heroku.example | 2 -- server/core/context_processors.py | 1 - server/core/settings.py | 15 --------------- 5 files changed, 24 deletions(-) diff --git a/Pipfile b/Pipfile index 44058ebe..0fb626dc 100644 --- a/Pipfile +++ b/Pipfile @@ -36,7 +36,6 @@ django-libsass = "*" bleach = "*" newrelic = "*" sentry-sdk = "==0.7.2" -django-sendgrid-v5 = "==0.8.0" python-http-client = "==3.2.1" ipython = "*" requests = "*" diff --git a/server/.env.example b/server/.env.example index 879cb4a1..dd6ddfd5 100644 --- a/server/.env.example +++ b/server/.env.example @@ -3,12 +3,7 @@ export AWS_SECRET_ACCESS_KEY= export AWS_STORAGE_BUCKET_NAME= export DATABASE_URL=postgres://skillbox:skillbox@localhost:5432/skillbox export DEBUG=True -export EMAIL_HOST= -export EMAIL_HOST_PASSWORD= -export EMAIL_HOST_USER= -export EMAIL_PORT= export ENABLE_SILKY=False -export GOOGLE_ANALYTICS_ID= export HEP_URL= export HEP_URL=https://stage.hep-verlag.ch export MATOMO_HOST= diff --git a/server/.env.heroku.example b/server/.env.heroku.example index cca68244..d63fdfb9 100644 --- a/server/.env.heroku.example +++ b/server/.env.heroku.example @@ -8,8 +8,6 @@ BACKUP_AWS_SECRET_ACCESS_KEY: BACKUP_S3_BUCKET_NAME: myskillbox-demo-backup DATABASE_URL: DEBUG: False -HEP_ADMIN_PASSWORD: -HEP_ADMIN_USER: HEP_URL: https://www.hep-verlag.ch HEROKU_API_KEY: LOGOUT_REDIRECT_URL: https://demo.myskillbox.ch/ diff --git a/server/core/context_processors.py b/server/core/context_processors.py index 87f0eac9..1d1b87ed 100644 --- a/server/core/context_processors.py +++ b/server/core/context_processors.py @@ -4,7 +4,6 @@ from django.conf import settings def settings_context(request): context = { 'RAVEN_DSN_JS': settings.RAVEN_DSN_JS, - 'GOOGLE_TAG_MANAGER_CONTAINER_ID': settings.GOOGLE_TAG_MANAGER_CONTAINER_ID, 'DEBUG': settings.DEBUG } return context diff --git a/server/core/settings.py b/server/core/settings.py index 01231111..2d331886 100644 --- a/server/core/settings.py +++ b/server/core/settings.py @@ -350,8 +350,6 @@ if ENABLE_SENTRY and os.environ.get('SENTRY_DSN'): RAVEN_DSN_JS = os.environ.get('RAVEN_DSN_JS', '') -GOOGLE_TAG_MANAGER_CONTAINER_ID = os.environ.get('GOOGLE_TAG_MANAGER_CONTAINER_ID') - GRAPHENE = { 'SCHEMA': 'api.schema.schema', 'SCHEMA_OUTPUT': 'schema.graphql' @@ -368,12 +366,6 @@ WAGTAIL_SITE_NAME = 'skillbox' GRAPHQL_QUERIES_DIR = os.path.join(BASE_DIR, '..', 'client', 'src', 'graphql', 'gql', 'queries') GRAPHQL_MUTATIONS_DIR = os.path.join(GRAPHQL_QUERIES_DIR, '../mutations') -# Sendgrid Config - -# EMAIL_BACKEND = 'sendgrid_backend.SendgridBackend' -# -# SENDGRID_API_KEY = os.environ.get("SENDGRID_API_KEY") -# SENDGRID_SANDBOX_MODE_IN_DEBUG = False DEFAULT_FROM_EMAIL = 'myskillbox ' @@ -383,13 +375,6 @@ if DEBUG: else: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' -EMAIL_HOST = os.environ.get("EMAIL_HOST") -EMAIL_PORT = os.environ.get("EMAIL_PORT") -EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD") -EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER") -EMAIL_USE_TLS = True -EMAIL_USE_SSL = False - ALLOW_BETA_LOGIN = True # HEP