From fa367208f3e06785b9179783b86e4459cefac21a Mon Sep 17 00:00:00 2001 From: Patsy Date: Thu, 12 Mar 2026 00:14:03 +0100 Subject: [PATCH] First commit of the this repo --- .gitignore | 6 ++++++ notes.md | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 notes.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02f3f02 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +__pycache__/ +*.pyc +.env +instance/ +.python-version +*.db diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..c0f124d --- /dev/null +++ b/notes.md @@ -0,0 +1,10 @@ +1. app/__init__.py ✅ Spot on! +This is called the Application Factory — it creates the Flask app, registers the database, login manager, and tells Flask where templates and static files live. "Initiates and tells Flask where is what" is exactly right. Better word: initialises! 🎯 + +2. run.py ✅ Correct! +Exactly right — it's the entry point. It imports your app and runs it. And yes, we'll set it to development mode first so we get helpful error messages and auto-reload when we change code. 💪 + +3. templates/ and static/ inside app/ ✅ Good instinct! +The full reason is: Flask looks for templates and static files relative to the app package by default. Keeping them inside app/ means Flask finds them automatically without extra configuration. And when your project grows to multiple modules later, each module can have its own templates folder — super clean! 🎯 +​ +find . -not -path './.git/*' -not -path './__pycache__/*'