
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/
Install Python, add it to your path, and enable pip to install Django and a virtual environment for building a to-do app.
Choose a text editor you’re comfortable with; Sublime Text is the course default, Notepad++ is an alternative, then download, install, and customize settings across Windows, Mac, or Linux.
Learn to set up a Python virtual environment with virtualenv, create and activate it (PowerShell on Windows or a Unix shell), and verify installed packages with pip freeze.
Install Django from pip in a virtual environment, verify with pip freeze, and create a to do app project ready for running the server and migrations.
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.
Run the development server and view the app at localhost:8000 to verify installation. Activate the virtual environment, migrate the database, and create a superuser to access the Django admin area.
Create and register a new Django app in your project, add it to installed apps, and review its basic structure: migrations, models, and views.
Explore setting up django routing with urls.py: wire the admin route and include your new to-do list app, defining the root path and future url patterns.
Define a home view, render the home.html template with the request, and map a url pattern named home to serve the page.
Create a base template and extend it with blocks in Django to share the navigation bar and footer across all pages from one file.
Build a Bootstrap navbar for a Django to-do app by copying components and applying them across pages, then customize colors, links, and buttons.
Explore how django dynamic links use named urls and embedded python to update navigation automatically when paths change, avoiding hard-coded html links across a site.
Learn how to pass Python data into Django pages using a context dictionary, render variables in templates, and output dynamic content on pages.
Register your to-do list model in Django admin, display items, and manage status with booleans and simple formatting to reflect completed tasks.
Pull all items from the database in the view, pass them to the context as all_items, and loop through them to render an unordered list on the home page.
Transform the to-do list from a basic list to a bootstrap table by applying table classes, adding striped and bordered styles, and coloring rows when items are completed.
Learn to add custom css to a Django to-do app by creating a static directory, loading a style sheet, and applying a striker class for line-through on completed items.
Learn how Django handles get and post requests and form submissions. Save data to the database, redirect to the home page, and show a flash message after adding an item.
Add a user-facing confirmation message using Django's messaging framework, display it on the home page as a bootstrap alert after adding an item, and include a dismiss button.
Add a delete path and view that uses the item’s primary key (list_id) to delete the to-do item, then redirect to the home page and update links.
Learn to cross off and uncross to-do items in a django web app by updating each item's completed status and saving changes through cross_off and uncross views.
Build an edit form in Django to update a todo item, including a hidden completed field, prefilled with the item, saving on submit, and redirecting home after update.
Get the source code for the course here:
https://github.com/flatplanet/Python-To-Do-App
Access 60-plus courses with a lifetime membership, including Django and Python projects such as a to-do app, and save $200 with the Udemy coupon.
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 To-Do List 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 28 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 To-Do List app that let's you make lists and save them to a database. You can update items as you complete them to "cross them off the list".
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!