From 215bc69b4f709bcc95ab2b5e1737a76c46da4c23 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Tue, 26 Mar 2024 16:24:18 +0100 Subject: [PATCH] config.py --- .gitignore | 3 ++- config.example.py | 0 config.py | 0 tldtest/settings.py | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 config.example.py create mode 100644 config.py diff --git a/.gitignore b/.gitignore index 62f4aa3..9964af6 100644 --- a/.gitignore +++ b/.gitignore @@ -173,4 +173,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ - +# Avoiding public key leakage +/config.py diff --git a/config.example.py b/config.example.py new file mode 100644 index 0000000..e69de29 diff --git a/config.py b/config.py new file mode 100644 index 0000000..e69de29 diff --git a/tldtest/settings.py b/tldtest/settings.py index 962a54a..dc7908e 100644 --- a/tldtest/settings.py +++ b/tldtest/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path +import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent