Django Basics
A hands-on introduction to Django — covering project setup, models, the admin interface, views, templates, and forms to build complete web applications with Python.
Django is Python's most widely used web framework — batteries included, convention over configuration, and production-ready out of the box. This training takes participants from their first Django project through models, the admin interface, views, templates, and forms, giving them everything they need to build complete, database-backed web applications.
Who is this training for?
Python developers and software engineers who want to build web applications with Django. Basic Python knowledge is assumed; no prior web development experience is required.
Agenda
Django Tour
- Creating a first project and running the development server
- The
manage.pycommand-line tool - Project and app structure
- Creating and registering apps
- Database configuration and migrations
- Extending the built-in User model
Models and Data
- Defining models and field types
- QuerySets: filtering, ordering, and aggregating data
- Foreign Key / Many-to-One relationships
- One-to-One relationships
- Many-to-Many relationships
Django Admin
- Registering models in the admin interface
- Registering and configuring User models in the admin
- Customising admin forms and list views
- The Django permissions system
Views and URLs
- URL routing and URL patterns
- Function-based views
- Class-based views
Templates
- Variables and template context
- Template filters
- Template inheritance
- Reusing templates with
{% include %}
Forms
- General-purpose forms
- Model forms
- Form validation
- Rendering forms with templates
Book this Training
Interested in this training for your team? Reach out and we'll put together a proposal tailored to your requirements — on-site or remote, predefined agenda or custom.
Request this Training