diff --git a/.gitignore b/.gitignore index 21f45c2..4eb3831 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ __pycache__/ env/ db.sqlite3 .DS_Store +.env +venv/ diff --git a/mustgou/settings.py b/mustgou/settings.py index 34c1d56..4b4606a 100644 --- a/mustgou/settings.py +++ b/mustgou/settings.py @@ -11,6 +11,7 @@ """ from pathlib import Path, os +from decouple import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -20,7 +21,7 @@ # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = "django-insecure-p@#&)c8s!q2!b2mfn)=39fqd@g&rz&zhy@r(p5-xu40cc-)r=%" +SECRET_KEY = config("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False diff --git a/requirements.txt b/requirements.txt index 1f8f57d..0bfa612 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ asgiref==3.8.1 Django==4.2.14 +python-decouple==3.8 sqlparse==0.5.0 -typing-extensions==4.12.2 +typing_extensions==4.12.2