Загрузка...

SQLAlchemy + Flask for Beginners with project - #11 Edit Contact Form — Part 2: Update & Commit

👉 Download Project Assets - https://d3jvccu5uv6ada.cloudfront.net/contacts-manager-static.zip
👉 Flask crash course → https://www.youtube.com/playlist?list=PLMLdiraLeES0QK9d15wcdlZm1Rn3gcREC 👉 This Playlist - https://www.youtube.com/playlist?list=PLMLdiraLeES2GRWSpGWBLJe5aJNNY0Sok

👉 On this lesson: Process the edit POST, validate, handle unique email errors with rollback, and redirect back to the list.

Welcome to the SQLAlchemy + Flask for Beginners (Contacts App) series! 🚀
We’re building a real, clean Flask web app step-by-step using Flask, SQLAlchemy (ORM), SQLite, Jinja templates, and Tailwind CSS (via CDN). Everything is beginner-friendly and works on Windows/macOS/Linux.

What you’ll learn in this playlist:
Set up a professional app factory with a tidy project structure.
Configure SQLite safely (instance folder) and wire Flask-SQLAlchemy.
Design models, constraints, and relationships (one-to-many, many-to-many).
Master sessions: add / commit / rollback (and common pitfalls).
Build full CRUD: create, list, edit, delete (POST-Redirect-GET).
Add validation, handle IntegrityError (unique email), and enable CSRF.
Implement search, sort, and pagination for real UX.
Seed data with a Flask CLI (Faker) for fast demos.
Prepare for growth: intro to Alembic migrations and environment-based configs.
Keep the UI modern and minimal with Tailwind (no heavy JS).

Why this series:
Short, focused lessons (3–6 min) with copy-pasteable code
Minimal Jinja logic and clean diffs so you can teach or learn efficiently
Perfect for beginners who want a practical Flask + SQLAlchemy foundation

Prereqs:

Python 3.x installed
Basic terminal usage (we’ll guide you)
If this helps, consider liking/subscribing and dropping questions in the comments. 💬

#flask #python #sqlalchemy #sqlite #tailwindcss #webdev #beginners #windows #macos #thepythonmentor

Видео SQLAlchemy + Flask for Beginners with project - #11 Edit Contact Form — Part 2: Update & Commit канала The Python Mentor
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять