
Learn to build a user authentication system in Django with Python, including signup, login, logout, password changes, and access control based on user login status, with Bootstrap styling.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Download and install Python from python.org, uninstall and reinstall to get the latest 3.x version, add Python to the path, and enable pip for a virtual environment.
Set up a virtual environment to isolate Python and Django projects, enabling multiple versions and safe, sandboxed development. Activate and deactivate the environment via the command line to manage dependencies.
Demonstrates installing Django via pip in an active virtual environment, with options for latest or legacy versions, and confirms the installation with pip freeze.
Django has updated to version 3.0 since this course was released. You can use the latest version of Django with no problems in this course.
Set up a new Django project by running django-admin startproject in a dedicated folder, inspect manage.py, and explore basic files like settings.py and urls.py, preparing to add an app.
Start the Django development server, verify installation, and run migrations to resolve database errors. Create a superuser and explore the Django admin to prepare building a custom user authentication system.
Build a Django authentication app called authenticate, add it to the installed apps, wire it into the project settings and urls, and organize its own views and urls for modularity.
learn to build the Django home page by organizing templates in templates/authenticate, creating home.html, and wiring a view to render it via a url to the home function.
Extend the authenticate base template with bootstrap, display content via block content, wrap pages in a container, and demonstrate a bootstrap button as the first styling step.
Learn to add a Bootstrap navbar to your Django project, embed it in the base template, and customize items like login links while ensuring it appears on every page.
Explore Django’s user authentication, create a user object, and contrast manual setup with Django’s automatic auth, covering login, logout, password hashing, forms, and django.contrib imports.
Create a login form in a Django app using the built-in auth tools, wiring a login view, URL, and template with username and password fields.
Update the login form styling, input types, and add a cross-site request forgery token, then post to itself and use Django authenticate and login with the form's username and password.
Implement login logic in Django by handling form posts, authenticating users, and redirecting to the home page, while fixing indentation and preparing post-login ui changes.
Use Django's messaging framework to display login success and error alerts on the home page via the base template and Bootstrap alerts.
Determine authentication-driven navigation by using user.is_authenticated in the view to show a log out link when logged in and a log in link when not; authenticate and redirect to home.
Compare manual and automated registration methods in Django, demonstrate creating a registration view, and leverage Django's automated user creation and form handling to enforce password rules.
Create a registration page by using Django's user creation form, handling post requests, rendering the form in context, validating, saving, authenticating, logging in, and redirecting home with a message.
Create a registration form in a Django app, posting to register with a CSRF token, displaying form errors, and exploring rendering options like as_p, as_ul, and as_table.
Extend the Django registration form with email, first name, and last name by creating a sign up form that inherits from the user creation form, and update the register view.
Learn how to customize Django generated forms by applying widgets and Bootstrap classes to form fields, improving the registration and login pages.
Explore how to customize Django forms by adjusting labels and help text, adding placeholders, and styling form fields to improve login and user information input.
Create a custom edit profile form based on the user change form, expose only username, first name, last name, and email, and remove password fields for now.
Build a custom change password feature in Django using the built-in password change form, a view, and a template, and update the session hash to keep users logged in.
Remove the password link by converting the password field to a hidden form field in Django, then link to the change password page using Django URL routing.
Explore a Python and Django course catalog with project-based courses, PDFs, and certificates of completion, and upgrade to lifetime membership with a $200 Udemy coupon.
Let's build a user Authorization app in Django!
Django and Python can seem overwhelming at first, but they don't have to be! In this course I’ll walk you through it step by step and you’ll be building your first web app in MINUTES. You’ll be amazed how quick and easy it is to create very professional looking websites, even if you have no programming or web design experience at all.
Watch over my shoulder as I build a cool User Authorization app step by step right in front of you. You’ll follow along and build your own copy. By the time we’re finished, you’ll have a solid understanding of Django and how to use it to build awesome web apps.
The course contains 30 videos – and is just over 2 hours long. Watch the videos at your own pace, and post questions along the way if you get stuck. You don’t need any special knowledge or software to take this course, though any experience with HTML or CSS is a plus. You don’t even need to know the Python programming language. I’ll walk you through EVERYTHING.
Django is a great web development tool and learning it has never been this easy.
What We'll Build...
We'll build a cool User Authorization app that let's user sign up (register) for your site, log in, log out, edit their profile, and change their passwords. These days just about every website let's people sign up and log in, and you really need this skill if you want to build modern web apps.
We'll style the website using the popular Bootstrap CSS framework (I'll show you how to use it!)
Sign up today and I'll see you on the inside!