Your first application¶
Follow First project: a ticket desk for the complete application. It replaces the earlier standalone Tasks example with a protected Ticket API and executable tests. Use its exact files together; fragments from different starter applications are not interchangeable.
The generated project starts with model, serializer, ViewSet, route and admin stubs. The tutorial fills them in this order:
- Define
Ticketinapp/models.py. - Define its authenticated ViewSet in
app/views.py. - Register the ViewSet through
app/urls.py. - Add the tutorial's server-owned local credential adapter.
- Generate and apply the migration, start the app and run the tests.
A model definition does not create its database table until its migration runs. A ViewSet does not verify credentials merely because it is registered. The first-project guide includes both steps and explains the development-only identity adapter.
Continue with relations and validation when the first API works. Optional MCP exposure comes in the final chapter, after application authorization and tenant boundaries are in place.