
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 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.
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.
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.
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.
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.
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.
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 map air quality categories to descriptive text using if-else statements, covering good to hazardous levels and proper labeling for unhealthy for sensitive groups.
Move Django template logic into the Python view to pass category description and color to the jumbotron. Update USG to unhealthy for sensitive groups.
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.
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 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.
Create dynamic Django links by referencing named routes, updating paths without rewriting pages, and using embedded Python to generate URLs that reflect site changes.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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