
Learn python fundamentals and django by building projects from air quality lookup to do list, stock portfolio, and a django api, with instructor support and practical guidance.
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/
Learn how to download and install Python, including uninstalling and reinstalling, adding Python to your PATH, and selecting the 32-bit version, with notes for Windows, Mac, and Linux.
Download Sublime Text to begin writing Python code throughout the course. Follow the installation on Windows, then use the command prompt or Linux or Mac terminal to run Python code.
Create your first Python program by saving it as hello.py in a Python directory and printing 'hello world' with the print function. Run it from the command prompt.
Learn to use Python comments to explain code and to clear the screen with an os.system call, demonstrating how comments aid readability and team collaboration.
Learn how variables act as containers that hold values, assign with the equal sign, and print them. Note underscores, camel case, and case sensitivity in Python naming.
Explore Python’s five core data types—strings, numbers, lists, tuples, and dictionaries—and learn how to declare, access, and distinguish mutable lists from immutable tuples, plus dictionary key-value pairs.
Learn how to work with strings in Python, using single or double quotes, backslash escapes, and the newline sequence to print content correctly.
Learn how to perform basic math in Python using addition, subtraction, multiplication, division, exponentiation, and modulus; master order of operations, variables, and print output.
Learn the two main number data types in Python, integers and floats, how division yields a float, and how to convert or round with int() and round.
Master assignment operators, including plus equals, minus equals, multiply equals, divide equals, exponent equals, and modulus equals, to update variables efficiently.
This video covers Python lists: creating lists with strings and numbers; accessing items by index; mutating with assignment, deletion, and append; and using len to get size and last item.
Explore dictionaries in Python by creating a fave pizza dictionary, accessing items by key, and updating, deleting, and printing the dictionary, with keys and values.
Learn how to use Python conditional statements using if, else, and elif with comparison operators to make decisions, print results, and understand indentation and colons in flow control.
Learn how to combine multiple conditional statements in Python and Django, using the and or operators, and building if, elif, and else chains to control program flow.
Master while loops in Python by using a counter, conditions, and proper indentation to avoid infinite loops, incrementing the counter and printing the count.
Discover how for loops iterate through strings, lists, and dictionaries, printing each item. Learn to access dictionary keys and values with items() and loop variables.
Combine concepts from the intermediate section by building fizz buzz from 1 to 100, printing fizz or buzz for multiples of 3 or 5, and testing different loop approaches.
Learn to build and call your own Python functions, define parameters and pass arguments, and understand why definitions should appear at the top of your program.
Learn how to use Python modules, import them, create your own module.py, define and call functions, and organize code for cleaner programs, with a preview of classes.
Kick off the top Python and Django web development bundle by building a weather app that fetches air quality data from a third-party API and displays it by zip code.
install python on windows, including uninstall and reinstall, add python to path, use a 3.7.4 32‑bit version from the official site.
Set up a Python virtual environment for Django projects by creating a project directory, installing virtualenv, creating and activating the venv, and verifying isolation with pip freeze.
Install Django and create a new project in a virtual environment, then run the development server to view the default Django page at localhost:8000.
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.
Access the Django admin area, migrate the database, and create a super user to log in and manage users.
Create a Django app named look_up with python manage.py startapp look_up, add it to the settings.py installed apps list, and create a urls.py to define its URLs.
Learn to build django pages by creating templates, defining views, and mapping urls. Create a templates directory, a home.html, a home view, and a url that renders it.
Create a base template that holds the site-wide header and footer, extend it from every page, and use block content to insert page-specific content across the site.
Learn to implement a Bootstrap navbar by copying a sample, customize the dark theme and button colors, remove unused links, and rename navigation items for weather app and about me.
Master version control with git by saving, tracking, and rolling back code via GitHub, using the master branch and pushing commits to enable safe, collaborative development.
Use the air now api to fetch current air quality by zip code and ozone levels, and learn color coding from green to maroon; sign up for an api key.
Build a query URL for the air now API using zip code, distance, and json, include api key, and read aqi values and category colors on the home page.
Learn to parse API responses returned as Python lists of dictionaries, extract AQI, area, and category, and format results for display.
Implement quick error handling for the api call in the home view by checking api existence and error states, printing an error message when needed, then render the content.
Enhance a page with Bootstrap's jumbotron by replacing placeholder text with current Las Vegas air quality data and adjusting colors to reflect air quality levels.
Learn to map air quality categories to descriptive text using if-else statements, covering good to hazardous levels and proper labeling for unhealthy for sensitive groups.
Learn to change a jumbotron color by defining CSS classes (good, moderate, unhealthy, very unhealthy, hazardous) and applying them inline in the base template, then test on the home page.
Move Django template logic into the Python view to pass category description and color to the jumbotron. Update USG to unhealthy for sensitive groups.
Learn to build a functional Django form by adding a CSRF token, setting the action to home, using the post method, and naming the input zip code.
Differentiate get and post requests in the Django home view, handle form submissions, extract the zip code from posted data, and render dynamic air quality results.
Test the zipcode lookup feature by entering 63122, triggering a map update and a yellow, moderate air quality result for St. Louis and Kirkwood, confirming UI functionality.
Build a database-driven to-do list app using Django and Python while mastering database basics, data interactions, and the essentials to add, edit, and manage tasks.
Install Python, add it to your path, and use a custom installation with pip to install Django and set up a virtual environment for Django development.
Choose and install a text editor for Python development, with Sublime Text as the primary option and Notepad++ as an alternative. The video also previews setting up a virtual environment.
Set up a virtual environment via a terminal to create a walled garden for Python projects and manage different Python versions safely. Activate it with the proper script on Windows or Mac or Linux, verify with Python -V and pip freeze, then prepare for Django installation in the next video.
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.
Launch the django development server, view the default site at localhost:8000, and apply migrations. Create a superuser to access the django admin area for database management during development.
Learn how to template web pages with a base template in Django, using extends and blocks to reuse a navigation bar and footer across all pages.
Install Bootstrap CSS in a Django project by copying a starter template and wrapping content in a container. Define block title and meta tags, and add a top navigation bar.
Explore bootstrap navbars by copying a ready-made component, and customize the dark theme and buttons, then place it so it appears on every page of your Django site.
Create dynamic Django links by referencing named routes, updating paths without rewriting pages, and using embedded Python to generate URLs that reflect site changes.
Create a Django model in the app’s models.py by defining a Python class that inherits from models.Model with character field for the item and boolean field for completed, default false.
Create a Django list model with item and completed fields, generate and apply a migration to build the list table with an auto id primary key in the database.
Register and explore the Django admin to add and manage the to-do list database, register models, and customize how items appear and toggle completion.
Learn to add custom css in django using a static directory for css, javascript, and images, configure settings, load static in templates, and apply a line-through style to completed items.
Learn to use Django's messaging system, including messages.success(request, ...), to display a success message after adding an item on the home page with Bootstrap alerts and a dismiss button.
Build a Django delete item feature by adding a delete URL that passes list_id, a view that fetches by primary key, deletes, and redirects home.
Learn to cross off and uncross to-do items by toggling the item.completed flag, wiring cross_off and uncross views, and updating the UI with links and redirects.
Create an edit view and template to modify items in the to-do list, link to the edit page, render the selected item, and prepare a form for updates in Django.
Edit items with a preloaded form, handle empty items, and update a hidden completed field to preserve state, then save and redirect to the home page.
Create a dedicated project folder, set up and activate a virtual environment, then install Django for an isolated workflow. Use pip and pip freeze to manage and verify installations.
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.
Enable Django's admin area by migrating the database and creating a super user, then log in to manage users and groups from the admin interface.
Create a quotes app in the Django stock project with startapp, add models.py, views.py, and an app-specific urls.py, and learn how two urls.py files route admin and stock quotes.
Learn to connect to a third-party API in a Django app by using requests and json, install dependencies, pass a token in the request, handle errors, and render API data.
Format stock data from an API by selecting key data points: company name, latest price, previous close, market cap, 52-week high/low, and year-to-date change, and output them with query parameters.
Modify the search form in the navbar and include a CSRF token for Django. Change the button to stock quote, set the placeholder, and post via the home view.
Enhance a Django form by naming the input as ticker, handle post requests to fetch quotes via an api, and render ticker results on the home page with error handling.
Create an add stock page to save portfolio ticker symbols by wiring a new Django URL, view, and template, and design a single-field database to store tickers.
Register the stock model in the Django admin, verify it appears, and learn how to add, edit, and delete stocks through the admin interface.
Pull stock objects from the database with the stock model, import it in views, pass ticker data in context, and loop to display tickers on the webpage.
Learn to add a stock ticker to the database from a web form in django, replacing the janky post handling with a proper stock form, messages, and redirects.
Build a Django stock form linked to the stock model with a ticker field, validate input, and save to the database. Handle post requests, show success, and redirect home.
Learn to delete stock records from the Django app by using the primary key, implementing a delete view, wiring URLs, and updating the page to remove items on action.
Implement django messages to flash bootstrap alerts for add and delete actions, looping through messages and displaying them in the base template with a dismiss button.
Learn to display stock data with a Bootstrap table rather than a basic grid. Apply borders, striped rows, hover effects, and a dark header for clarity.
Configure a seven-column stock table by updating the table head and rows, then connect the database to the api to populate each table row with stock data.
Explore building a Bootstrap table from database data by looping through tickers, adding delete capabilities, and preparing to connect to an API for real stock data.
Demonstrates looping through API results as a list of dictionaries, extracting company names and metrics like latest price, previous close, market cap, and 52-week high/low, rendering them on a page.
Connects the database to the API and renders results into a dynamic table, iterating items, handling delete actions, and applying formatting for prices, market cap, and percent changes.
Create a dedicated delete stock page by wiring templates, views, and navigation, pass ticker for deletion, add error handling, and apply bootstrap secondary button styling to delete actions.
Learn to set up version control with GitHub, back up code, and generate an SSH key pair in the terminal to securely connect and push your project.
Learn to build an API with Django and Python connected to a database using free tools, with cross-platform guidance for Windows, Mac, and Linux.
Download the official Python installer, uninstall and reinstall if needed, and add Python to your path so you can run it from anywhere on Windows.
Install Sublime Text and Git Bash terminal to set up your Python and Django development environment. Download for Windows, Linux, or Mac and begin coding with a text editor.
Create and activate a python virtual environment to isolate django projects, using python -m venv, naming the environment, and activating on Windows or Mac; verify with pip freeze.
Install Django and the Django rest framework in a virtual environment with pip install, then use pip freeze to verify, and activate the environment before each project.
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.
Install django, create a new project named django api, update settings.py to include the installed django framework, run migrations with python manage.py migrate, and start the server to view localhost:8000.
Create a Django app named courses, register it in settings, and wire its urls by creating a courses/urls.py and including it in the project URL configuration, preparing to connect views.
Create a Django course model with name, programming language, and price, generate and apply migrations, and prepare the admin and database for api-ready access.
Import the course model into admin.py and register it with admin.site.register to expose it in the Django admin; add sample courses and define __str__ to return the course name.
Create a serializer using the Django REST framework to convert the course model into JSON, including id, name, language, and price, and prepare views for the API.
Create a Django rest framework view set for the course model, using Course.objects.all() as queryset and the serializer to render JSON.
Set up urls and routes using rest framework routers to expose the courses API with get and post actions, register the router, and define the url pattern.
Switch to hyperlinked serializers in Django REST framework, add the you URL for each item, and expose clickable links in the API responses while practicing get, post, and put.
Learn to rapidly build a Django REST framework API by defining a course model, wiring views and URLs with routers, and registering the admin for auto-generated routes.
Access a lifetime bundle of 60+ programming and project-based courses, including Python and Django, with PDFs, progress tracking, certificates, and a 30-day money-back guarantee.
In this course I'll teach you the Python Programming Language and the Django Web Framework so that you can build amazingly professional websites in no time!
This course is broken into five main sections. In the first section we'll learn the Python Programming Language. You'll learn things like...
Printing to the Screen
String Manipulation
Variables
Data Types (lists, tuples, dictionaries and more)
Simple Math
Comparison Operators
Assignment Operators
Conditional If/Else Statements
While Loops
For Loops
Fizzbuzz
Functions
Modules
Classes
And More...
In the next section, we'll build a cool Weather App website that looks up air quality in your neighborhood (or any neighborhood)! We'll learn how to connect to a third party API to grab weather data and integrate it back into our app.
In the next section we'll build a To-Do List app that allows us to learn how to use Databases with Django. Create daily to-do lists, that you can add items to, cross off completed items, and edit items.
In the next section, we'll build an awesome Stock Market Portfolio app website that let's us look up stock quote data from the Internet. This is a really fun app to build!
Finally, in the last section, we'll learn how to build our own API with Python and Django. In two of the other sections we connected to a third party API to grab data, in this course we'll build out own!
This course is a bundle of five of my popular courses and I think you'll learn a tremendous amount of skills here!
Join me today and let's learn Python and Django!
-John Elder