Tutorial
This tutorial walks you through building a complete blog application with Buraq — models, views, forms, templates, and authentication.
What you’ll build: A blog with posts, categories, comments, and user authentication.
- Models — Define your data with Buraq ORM
- Views & URLs — Handle requests with FBVs and CBVs
- Forms — Validate user input with Form and ModelForm
- Templates — Render HTML with Jinja2
- Authentication — Protect views with JWT auth
Prerequisites
Section titled “Prerequisites”- Python 3.11+
- Buraq installed (see Installation)
- Basic Python and async/await knowledge
buraq startproject buraq_blogcd buraq_blog
uv syncsource .venv/bin/activate # Windows: .venv\Scripts\activate
buraq startapp postsAdd "posts" to INSTALLED_APPS in config/settings.py.