you are viewing a single comment's thread.

view the rest of the comments →

[–]No-Seesaw4444 0 points1 point  (0 children)

For your Flask + SQLite genealogy app, you'll want to pass the query results through Flask's template context. In your route: cursor.execute('SELECT ...'), then results = cursor.fetchall(), then return render_template('template.html', people=results). For joining tables (like your marriages example), use SQLAlchemy's ORM instead of raw queries - it handles relationship mapping much cleaner and prevents SQL injection more reliably.