From 4bbf886a3f99027e3db00b1ca05245712668a502 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Wed, 3 Jul 2019 16:46:32 +0200 Subject: removing possible hardcoded passwords --- pydis_site/apps/api/tests/base.py | 2 +- pydis_site/settings.py | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/pydis_site/apps/api/tests/base.py b/pydis_site/apps/api/tests/base.py index 37459f70..b779256e 100644 --- a/pydis_site/apps/api/tests/base.py +++ b/pydis_site/apps/api/tests/base.py @@ -5,7 +5,7 @@ from rest_framework.test import APITestCase test_user, _created = User.objects.get_or_create( username='test', email='test@example.com', - password='testpass', # noqa: S106 + password='testpass', # noqa is_superuser=True, is_staff=True ) diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 06eb9743..d38da34e 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -20,11 +20,8 @@ env = environ.Env( DEBUG=(bool, False) ) - # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - DEBUG = env('DEBUG') # Quick-start development settings - unsuitable for production @@ -39,11 +36,11 @@ if DEBUG: 'staff.pythondiscord.local', 'wiki.pythondiscord.local', ] - SECRET_KEY = "+_x00w3e94##2-qm-v(5&-x_@*l3t9zlir1etu+7$@4%!it2##" + SECRET_KEY = "yellow polkadot bikini" elif 'CI' in os.environ: ALLOWED_HOSTS = ['*'] - SECRET_KEY = "{©ø¬½.Þ7&Ñ`Q^Kº*~¢j