
Explore how the Django course uses video lessons and downloadable code in resources, with Q and A support to help you start.
Visualize the app with index and add files before Django integration, then create a dear_diary project with django-admin startproject and an entries app.
Explore the core Django app files—admin.py, models.py, views.py, tests.py, and migrations—and see how models store data, how views handle forms, and how the admin dashboard registers entries.
Learn how to set up Django's admin dashboard by running migrate to create user tables, creating a super user, and launching the dev server to access the admin interface.
Organize django templates in a templates/entries directory to prevent cross-app conflicts, render them with a view using render, and map urls to index and add endpoints.
Learn to wire a single navigation link in a Django app by naming URLs and using the url tag to reverse the ad page endpoint, ensuring robust routing.
Define an entry model as a database table with a text field and an auto date posted field using the ORM. Register it in admin and run makemigrations and migrate.
learn how to display database entries in Django by querying the entry model, passing them to the template context, and looping to render dates and texts in reverse order.
Create a Django form from the entry model using a model form in forms.py, customize the text field widget and placeholder, and render and submit it in the add view.
Process a Django form by handling post vs get requests, validating and saving a model form to the database, and redirecting to the index with CSRF protection.
Migrate the existing Django migrations to the SQLite database, inspect the user table with DB Browser for SQLite, and create a super user.
Define a simple Django model with a text field on an app, rely on a primary key, and use make migrations and migrate to create example_simple in the database.
Extend a Django model by adding fields such as integer and text, configure defaults or nulls, and update the database with make migrations and migrate.
Explore how Django model fields map to database columns and use optional arguments like null, blank, choices, default, editable, unique, verbose name, and validators.
Explore Django model fields such as auto field, big integer, boolean, char, date, decimal, file, and image fields, with guidance on when to store files outside the database.
Explore how the Django admin dashboard manages users, groups, and permissions through relationships and a user-friendly interface. Register models, rely on Django validation, and manipulate data safely inside the admin.
Use the Django shell to create a new model instance, save it to the database, update fields, and delete the object, then observe changes and prepare for querying data.
Learn how to retrieve a single row in Django using the get method, including querying by primary key and handling not-found errors, and contrast with fetching multiple rows.
Retrieve all rows from the database using model.objects.all(). Iterate the results to access and edit fields like text and id. Update objects and save changes to persist updates.
Use filter to limit database results and return only matching records, returning a query set even for single results. Access the first element to obtain the object when needed.
Explore how exclude acts as the complement of filter in Django querysets, returning items not matching the filter and enabling you to cover the full table when combined.
Chain multiple filters in Django by applying a first filter and then a second, such as number equals 10 and url yahoo dot com, to see the query results.
Learn how field lookups extend django filters, using exact (case-sensitive) and i exact (case-insensitive), plus contains, in, starts with, ends with, and date range lookups.
Learn how to limit results with a slice, returning the first N items, and how to offset results to skip rows, using examples like example.com, facebook.com, and apple.com.
Learn to order results with order by in django: set default order, apply filters first, use minus for reversal, combine columns, and limit results.
Learn to count the number of results a Django query returns by appending count, apply filters to refine counts, and track post counts in apps.
Create a Django model with a date field, import Python date and datetime, run migrations, and query using double-underscore lookups for date, time, month, and day.
Create a Django model with a char field that can be null or blank, run migrations, and use is null and is not null filters to find records with data.
Model a one-to-many parent-child relationship in Django by linking language (parent) to framework (child) with a foreign key and on delete cascade, using migrations.
Explore querying one to many relationships in Django by filtering child frameworks by parent language and vice versa, using double underscore lookups and name field filters.
Explore many-to-many relationships in Django by linking movies and characters with a many-to-many field and a third table, using migrations and queries for Avengers and Captain America.
Learn to query many-to-many relationships in Django by filtering related fields and finding all movies a character appears in, and all characters in a movie like the Avengers.
Configure django to use a different database by editing settings and selecting an engine. Explore switching to postgres, mysql, or oracle with the required name and login details for migrations.
Explore how urls serve as the entry point to a Django app, mapping browser requests to views via url patterns, including admin routes and app-specific include files.
Create three simple views named register, profile, and timeline, and map each to its own url path using Django's include and nested urls.
learn how views translate user input into app responses in django, handling incoming requests, distinguishing methods like get and post, and returning appropriate responses such as html or json.
Learn to pass data through URL endpoints by using path variables and query strings, including default values, trailing slashes, and multiple routes that map to the same view.
Pass data through url using a query string of key=value pairs after a question mark, separated by ampersands, and access them in the view via get arguments, location and age.
Learn how redirects move users from a registration form to a different page by returning redirects to named urls, such as timeline or profile, and how views orchestrate this navigation.
Learn to return error responses in Django views by raising http 404 for page not found, and use a common error page for consistency.
Set up Django templates by creating a project and an app, then add the app to installed apps. Organize templates in app-specific subdirectories and render an index template.
Discover how Django templates use variables from a context dictionary to render dynamic content. Learn how curly braces and dot notation access dict and list values passed from views.
Master how to use conditionals in Django templates with if statements and else blocks, passing booleans to templates to control what gets rendered, including admin versus regular user views.
Learn how to use for loops in Django templates to iterate over lists and even lists of dictionaries, display items with variables, and close loops with endfor.
Use include to reuse a snippet across templates by referencing a separate file. Updates to included snippet propagate to all templates, and you can use if statements and for loops.
Learn to prevent template duplication in Django by using block inheritance: create a base template, extend it, and inject page-specific content with blocks.
Django teaches serving static files by placing assets in a static directory and using the load static tag to reference them, with app static folders aggregated into one served directory.
Learn how to create dynamic, named urls in Django using the url template tag, pass parameters like username to views, and avoid hard-coded endpoints for robust navigation.
Explore how Django template filters modify variables via the pipe syntax, use add to increment numbers, and explore filters like cap first, data (date) formatting, first, join, and length.
Create a simple Django form from scratch, wire it to a view and template, and inspect data via request.POST while comparing get versus post and csrf basics.
Learn to create a Django form by defining a username form with a CharField, wiring it into a view, handling get and post requests, and using cleaned_data.
Explore how Django displays forms using table, paragraph, or list item tags and how manual rendering with a field name gives you more control over layout and errors.
Get started with Django explains form validation using built-in validators such as min length, email, and regex, and demonstrates how Django renders form errors in templates.
Learn to customize Django form widgets to display HTML classes. Use widget attributes to apply classes and switch between text input and text area for better styling with a framework.
Explore Django forms using built-in field classes, including boolean, date, decimal, file, image, integer, slug, time, and email fields, and learn how choices and default widgets render and validate inputs.
Learn how Django model forms generate forms from models, handle get and post requests, and save data to the database with form.save using fields like name, make, and year.
Discover how model forms update an existing object by passing an instance to the form, demonstrated with updating a car record without creating a new entry.
Explore class based views in Django by implementing get and post methods on a class, handling forms, and rendering templates to improve code reuse and organization.
Create and manage users in Django by migrating tables, creating a superuser, starting the server, and adding a new user via the admin dashboard with an email and password.
Wire the Django authentication system by adding the auth URLs, creating a registration/login template with CSRF protection, and configuring login redirects to the home page.
Retrieve the currently logged-in user in Django views and templates using request.user to access the username and email, and render them conditionally with is_authenticated.
Restrict a profile view to logged-in users with the login_required decorator in Django, configure the login URL, and use next to redirect users back after login.
Build a Django registration page with a register view and template, using UserCreationForm to create users, handle get and post requests, include csrf, and show password mismatch errors.
learn how to automatically log in a newly created Django user after registration, authenticate credentials, and redirect to a screen displaying the username.
Extend the Django user creation form to include email, first name, and last name fields by creating an extended form and overriding save to populate the user model before saving.
Learn to extend the Django user model with a one-to-one related user profile, add location and age fields, integrate with admin, and handle profile creation during user registration.
Update the logout redirect URL to point to the home page, so logging out returns users to the home page instead of the logout page.
Learn how to secure a Django class-based profile view with the login required mixin, mirroring the function-based login_required decorator by redirecting unauthenticated users to the login page.
Create a django video site by starting a project, adding a video app with templates, and building a list and video page with a player, thumbnail, and upload details.
Learn to render templates in Django by wiring an app into the project, creating index and video views, and mapping URLs to display templates.
Create a reusable base template in Django by extracting common HTML into a base file, defining a content block, and extending it across index and video pages to avoid duplication.
Create a Django video model with title, date_posted auto timestamp, and file fields for video and thumbnail uploaded to an uploads directory. Register the model in admin to manage videos.
Learn how to upload a video and thumbnail in Django, store file paths in the database, and display media in a template while noting deployment and media serving options.
Display an uploaded mp4 video on the video page by configuring a media directory, serving media with Django, and rendering the video URL in the template.
Learn to display time since posting in django using the humanize app, loading the template tag, and applying the natural time filter to show minutes ago.
Learn to query the video model for all videos, group results in threes for display, and pass them to the template to render thumbnails, titles, and video page links.
Create a basic form-based app by starting with HTML files for index, profile, view thread, and login/registration pages, enabling thread lists, posting replies, and account creation.
Create a Django project and add two apps, user_profile and form, then configure settings, migrate the database, and use the admin to manage users and content.
Organize templates and static files, create views for register, profile, index, and thread, configure urls and include to connect the forum and user profile apps in a Django project.
Create a base template and extend it across multiple pages, then load static assets like Bootstrap and jQuery for styles and scripts using Django's static tag.
Learn to build a functional Django user registration flow by extending the default user creation form with an email field, validating input, saving the user, authenticating, and logging in.
Enable a django login endpoint by wiring the built-in auth view to a custom extended authentication form. Update templates and fields, handle csrf, and plan post-login redirects.
Build a Django profile page showing user email, username, and a formatted join date, configure login redirect to the profile, and prepare a logout link.
Set up a logout endpoint using Django auth views, redirect to the index after logout, and restrict the profile page to logged-in users with the login required decorator.
Create forum models in Django by defining thread and reply models with fields for title, description, messages, creation dates, and foreign keys to user, then migrate to populate the database.
Create and customize Django forum forms by building model forms for thread and reply, configuring fields, Bootstrap styling, placeholders, and template integration to drive forum functionality.
Integrate thread form into the index with cross site request forgery token, instantiate and render the form, save new threads via a thread view, and redirect to the thread page.
Create a specific thread page and a thread listing in Django by passing a thread id to the view, querying the thread model, and rendering titles and descriptions.
Add a reply form to a thread, validate with csrf token, save the reply with the thread and the logged-in user, and redirect to the thread view.
Display all thread replies by looping through replies, showing each reply text, date created, and the author's username via foreign keys, plus the total count.
Hide the reply form for users who aren’t logged in to prevent them from posting replies. Show it only when authenticated, and you may add extra protection in the view if desired.
Hide the new thread button for logged-out users on the index page using a login check, and implement a modal while ensuring emails no longer generate.
Update the site navigation to show login links when users are not authenticated and profile or logout links when they are, applying this logic to the index and thread pages.
Create a Django model method to return the latest reply date or, if none, the thread creation date, and display it in templates.
Update and verify navigation links across Django templates, linking index, profile, login, logout, register, and thread pages, including thread.id handling and ensuring the home page works.
Learn to display a user's reply count on their profile by adding a counting variable, showing the number of replies, and defaulting to zero when there are none.
Build a community app with registration and login pages, a logout URL, and thread features like creating and replacing threads, plus add thread button and reply form for logged-in users.
Welcome to Get Started With Django. This course is an introduction to using Django. By taking this course, you will know enough to get started building your own apps, so you can create the projects you've always wanted to create.
Why Django? Django is an easy to learn framework that is fully featured. If you are familiar with Python, picking up Django will be a very straightforward process, and you'll find that you'll be able to create your own apps quickly after starting the course. Django doesn't require any crazy setup or requirements, so if you can run Python on your computer, you'll be able to run Django with no problems.
Also Django includes nearly everything you need to build a web app, so you don't how to worry about installing anything else.
Once you enroll, you'll get access to several hours of content that you can work through at your own pace. Each video includes the code from the video, which makes it much easier for you to follow along.
You'll start by building a simple diary app that gets you familiar with how Django works. Then I'll cover various parts of Django like models, forms, and authentication so you can add them into your projects if you need them.
What you'll build. In addition to the diary app I mentioned, I also cover building a video site and a forum app.