From 665e9cee9a684a810299d59cd6344032227649d4 Mon Sep 17 00:00:00 2001 From: ddahan Date: Tue, 17 Oct 2023 17:34:35 +0000 Subject: [PATCH] changelog + clean --- CHANGELOG.md | 15 ++++++++++++++- config/settings.py | 9 +-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f70b0b..9cfb060 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,20 @@ ## 0.0.2 -- FIXME +*See the code diff [here](https://github.com/ddahan/masonkid-dj/compare/5a46c1a83d51f6e74e6cfd2add281b3d54a1ed70...4065d27cec5510b992f031b08398e151d6520fbb)* + +- Renamed the Project MasonKid +- Changed tabSize +- Changed auto-import types to relative +- Python 3.11.6 +- Removed Black, auto formatting is now handled by Ruff. +- Add custom vscode icon (if using the extension) +- Removed env file for database part as it's useless +- Add macOS .DS_Store to .gitignore +- Add this changelog as an easier way to follow changes +- Automatic app detection in settings +- Apps are added to the path to ensure proper support +- `dj_config` is renamed `config` to include any config ## 0.0.1 diff --git a/config/settings.py b/config/settings.py index ec6b099..5a49346 100644 --- a/config/settings.py +++ b/config/settings.py @@ -51,6 +51,7 @@ # Create apps in dj_apps folder sothat they are automatically detected MY_APPS = os.listdir(BASE_DIR / Path(APP_FOLDER)) +# Adding apps to the path is required for auto import for new_path in [APP_FOLDER] + [f"{APP_FOLDER}/{folder}" for folder in MY_APPS]: sys.path.insert(0, os.path.join(BASE_DIR, new_path)) @@ -70,14 +71,6 @@ ROOT_URLCONF = "urls" WSGI_APPLICATION = "config.wsgi.application" -########################################################################################## -# DX: Adding apps to the path is required for auto import -########################################################################################## - -APP_ROOT = "dj_apps" -for new_path in [APP_ROOT] + [f"{APP_ROOT}/{folder}" for folder in MY_APPS]: - sys.path.insert(0, os.path.join(BASE_DIR, new_path)) - ########################################################################################## # Database