
Engage deeply by participating in the Q&A and testing ideas through pauses and experiments, then reflect on the course overview and provide feedback as we begin building.
Walk through building a Django app for hall of fame vids with ajax, class-based views, and forms to create, add, share, and manage videos via YouTube links or search.
Explore how pipenv creates a per-project virtual environment, tracks dependencies in a Pipfile and Pipfile.lock, and uses pipenv install and pipenv shell to manage Django setup.
Set up a Django project and a single app named hols, create a base and home template, wire a homepage view and URL, and run the server with bootstrap.
Extend a base HTML template using Django's extends tag to create a consistent site flow with a Bootstrap nav bar and a content block.
Configure Django static files by defining STATIC_ROOT and STATIC_URL, creating a static folder, adding a CSS file and site icon, wiring URLs, and using load static to reference them.
Master Django authentication by adding sign up, log in, and log out with built-in and class-based views. Wire URLs, use reverse lazy, and rely on default registration templates.
Create and style registration templates in Django, including sign up and login forms rendered from a user creation form, with csrf protection and bootstrap container layout.
Create and migrate hall and video models, link them with a foreign key, and register in admin. Test sign up, login, and redirects to verify the authentication flow.
Learn how class-based views streamline creating and managing hall model objects, shown with a create hall example using a class-based create view and a halls/create_hall.html template.
Override form_valid in a Django class-based create view to attach the logged-in user to the hall of fame instance. Use migrations and cascade delete to manage data, then redirect home.
Enable auto login after sign up by authenticating and logging in the new user within a Django class-based sign-up view, streamlining the user onboarding flow.
Implement a detail view for a hall using Django class-based views within a CRUD workflow. Create, update, and delete paths connect with dashboard navigation for a complete model management experience.
Explains how to implement update and delete operations in Django using class-based views, including configuring update views, templates, success redirects, and delete confirmations within the crud flow.
Learn how Django model forms generate HTML inputs from models with validation, title, URL, and YouTube ID; build a video form for a hall of fame using a function-based view.
Learn form customization in Django, including setting custom labels, choosing display styles as_p, as_ul, or as_table, and looping through fields to control layout and errors.
Create a video object from a form, validate with is_valid and cleaned_data, link to a hall by primary key, and save; explore non-model search form with class-based views and Ajax.
Explore using Django form sets to save multiple video entries at once by creating a video form set with formset_factory, specifying extra forms and processing the set in the view.
Mastering Django teaches styling forms with bootstrap, using django-widget-tweaks to customize each field inside form groups, render errors, and apply form-control classes for responsive sign-up, login, and ad forms.
Explore connecting a Django app to the YouTube data API, obtain an API key, and integrate it to auto fetch video titles from a URL in forms and views.
Parse a YouTube URL to extract the video ID, auto-fill metadata, and save a video to the correct hall while enforcing ownership with a 404 check.
Fetch a YouTube video title via the YouTube data API v3 and API explorer, parse the JSON snippet, and integrate it into a Django form with error handling and redirects.
Learn how to set up ajax in a Django app to update search results without reloading the page, using jQuery, a search term field, a results container, and typing delay.
Learn to implement an Ajax call with jQuery in Django, including a delayed request, sending a search term to a video_search endpoint, and handling a JSON response.
Learn to fetch YouTube search results via AJAX in a Django app, encode queries, limit to six, and render results as Bootstrap cards with embedded videos.
Develop an ajax-driven video manager that adds YouTube videos to the hall of fame via clickable add buttons and a dedicated add video function, with URL handling and form submission.
Develop video deletion in Django with class-based views, templates, and URLs, following the delete hall pattern. Show the video details before confirming deletion to clarify which video is being removed.
Create a Django user dashboard that lists a user's halls of fame, loops through halls and videos in templates, and provides create, edit, delete, and add video actions.
Master CRUD for halls by implementing create, read, update, and delete with enhanced form styling and dashboard navigation, including owner-only edit and delete controls.
Build a Django home page with a jumbotron, show recent and popular hall of fame videos, and implement sign up and log in flows with validated forms and Bootstrap styling.
Seed data exports your database to a json file and reloads it to seed a fresh project, enabling quick testing and easier deployment to Heroku.
Enhance Django permissions with login required mixins and get_object checks to ensure only owners can update or delete halls and videos, protecting dashboards and login-protected pages.
Learn how to deploy a Django project to Heroku using the Heroku command line interface, Git, and a PostgreSQL database, with production settings and static file handling via whitenoise.
Deploy a Django app on Heroku by adding a proc file and runtime text, running migrate, seeding data, and configuring a custom domain to live at your own url.
Finish strong as a Django developer by applying the tips and tricks shared, and start integrating them into your own projects. To learn more, connect with the instructor.
Welcome to the Mastering Django Series! Learn time saving and advanced techniques to be come a better developer.
In this course, we'll be learning 8 new skills while creating "Hall of Fame Vidz". A website where users can create their own personal hall of fame videos and share them with family and friends. To get a better idea of what we'll be creating, go watch the promo video for the course. While creating this site, you will learn the following 8 skills:
Pipenv - Learn why this tool is so much better than pip and virtualenv separately
Pre-made Authentication Views - Get your site up and running quickly with these awesome built in views
Class Based Views - When working with models, these views can't be beat. HUGE time savers
Django Forms - Rather then creating painstaking html forms, let Django handle the heavy work
Using other site’s APIs - Learn to connect with the YouTube API for data
AJAX - I've had so many requests to cover this. Learn how to fetch data without reloading the page
Seed Data - Learn how to create a starting point for any database
Heroku Deployment - Heroku makes deploying your project simple and fast. I'll show you how
It's time to up your Django skills. See you inside!