Complete Python Web Course: Build 8 Python Web Apps
4.4 (4,125 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
27,538 students enrolled

Complete Python Web Course: Build 8 Python Web Apps

Build Python Web Applications from Beginner to Expert using Python and Flask
4.4 (4,125 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
27,538 students enrolled
Last updated 7/2020
English
English [Auto], Portuguese [Auto], 1 more
  • Spanish [Auto]
Current price: $76.99 Original price: $109.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 15.5 hours on-demand video
  • 14 articles
  • 3 downloadable resources
  • 6 coding exercises
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Design, develop, and deploy engaging web applications using Python and web languages
  • Understand the way the internet works from the point of view of all development areas
  • Develop applications that use MongoDB databases
Course content
Expand all 161 lectures 15:39:08
+ Your Age in Seconds
20 lectures 56:10

Download an e-book to go along the course, explaining the content covered by lectures with examples. For you to read at your own pace as well!

Get the course e-book!
00:27

In this video we have a quick look at what we are going to understand in this Section:

  • How to install Python and use IDLE.
  • What Variables, strings, and integers are.
  • What methods are and how we can create our own.
  • What the str(), int(), print(), format(), and input() methods do.
  • What if, elif, and else do.
Preview 02:01

This course comes with a live chat for discussions and Q&A. I am frequently available, so join us and get immediate feedback!

Join the live chat for discussions and Q&A
00:25

In this lecture we look at downloading and installing Python.

The version of Python used in this course is Python 3.4.3, which is the most recent at this time. If you are using a later minor version (e.g. 3.4.4 or higher), then you should encounter no problems at all. Python 3.5.0 is also absolutely fine. If you are using a later major version (e.g. 3.6.1 or higher), some things may change, but not substantially.

You may use Python 2.7 throughout the course for many things. Where possible, the differences between Python 3 and Python 2 will be highlighted in text below the lecture.

Remember the address to download Python from is http://python.org.

Preview 00:53

In this video we take a look at what integers and strings are.

Integers are just whole numbers (numbers without a decimal point).

Strings are collections of letters, numbers, and symbols; strings are also known as literals.

Preview 02:29

Let's quickly firm up our knowledge on integers and strings!

Integers and Strings Quiz
2 questions

In this lecture we take a look at creating variables in Python.

my_variable = 5
another_variable = "a string"
x = 153</span>

It really is that simple!

You can give variables any name you want as long as it is only letters, numbers, and underscores. Variables names may not start with a number. Also you may not use any of the Python keywords as a variable name.

For more information: http://www.pasteur.fr/formation/infobio/python/ch02s03.html

Variables in Python
02:10
Creating variables
1 question

The solution to the "Creating variables" Python coding exercise.

Solution to coding exercise: creating variables
01:33

In this lecture we take a look at printing to the screen and at converting between strings and integers, and vice-versa.

To print to the screen just use the print() method.

>>> print("hello, world!")
hello, world!
>>> print(5)
5

The str() method converts numbers to strings, and the int() method converts to integers.

>>> "5"
'5'
>>> int("5")
5
>>> str(5)
'5'
Preview 05:17
The print, str, and int methods
1 question

The solution to the "print, str, and int methods" Python coding exercise.

Solution to coding exercise: print, str, and int
03:46

In this lecture we take a look at how to format a string easily by replacing placeholders with values provided to the format() method.

>>> my_string = "this is a {} string"
>>> my_string.format("sample")
'this is a sample string'
>>> my_string.format("great")
'this is a great string'

We can also format multiple placeholders at once:

>>> "this is a {} {}".format("great", "number")
'this is a great number

And we can also format placeholders with names.

>>> "this is a {adjective} {noun}".format(adjective="great", noun="string")
'this is a great string'
>>> "this is a {adjective} {noun}".format(adjective="fantastic", noun="course")
'this is a fantastic course'
Preview 04:50

A cheatsheet covering the .format() method, for you to download and print out.

The .format() cheatsheet
1 page

Lets review how to format strings real quick!

Formatting strings quiz
2 questions
The format() method
1 question

The solution to the "format method" Python coding exercise.

Solution to coding exercise: format()
03:37

In this lecture we take a look at getting input from the user in the form of a string.

The input() method takes in a string that is the question to ask to the user, and returns another string, which is whatever the user wrote before pressing Enter.

>>> input("Enter your age: ")
Enter your age: 50
'50'
>>> user_age = input("Enter your age: ")
Enter your age: 50
>>> user_age
'50'
Getting user input with the input() method
04:22
Asking users for input
1 question

The solution to the "Asking users for input" Python coding exercise.

Solution to coding exercise: user input
01:10

In this lecture we take a look at creating our own methods, which are none other than names for a set of instructions which execute sequentially.

>>> def my_method():
        x = 10
        y = 50
        print(x + y)
>>> my_method()
60

Whenever you execute a method, the instructions run from the first instructions to the last.

In order to get the age in seconds, simply get the user's age, convert it to seconds, and then multiply it by 365 * 24 * 60 * 60.

Creating our own methods in Python
03:57
Creating methods and functions
1 question

The solution to the "Creating methods and functions" Python coding exercise.

Solution to coding exercise: creating functions
02:52

In this lecture we take a look at how to use if, elif, and else to control the flow of our program.

The if clause contains a condition. The code below the if clause only gets executed if the condition is true. The same thing happens with the elif clauses, but you can have many elif clauses (or none). The else clause does not use a condition.

price = 100
if price < 100:
    print("Buy the item!")
elif price == 100:
    print("You could buy it...")
else:
    print("Do not buy the item!")
If statements in Python
09:20

Let's check whether we've got everything in that last video!

If statements quiz
3 questions
If statements
1 question

The solution to the "If statements" Python coding exercise.

Solution to coding exercise: if statements
04:36
Section 1 assignment video
02:09

Review the Python basics in this quiz

Python basics
2 questions

The code from this section posted on GitHub. Have a look!

The Age Program Python Code
00:16
+ Price of a Chair
11 lectures 46:28
Our Development Environment
01:31
Creating virtual environments for Python development
05:27
Our Age application in PyCharm
03:32
(aside) Tweaking PyCharm
05:12
Making our first HTTP GET request
04:45
Finding our chair price parsing HTML
03:59
Parsing HTML data using BeautifulSoup
06:59
Why scraping sometimes fails
00:29
Using the price as a number
06:45

Revise the basics of HTTP in this quiz

HTTP Quiz
2 questions

This is the code for the "What's a Browser" program, which covers the requests library and BeautifulSoup.

What's a Browser program Python Code
00:12
+ A simple terminal Blog
19 lectures 01:59:36
Our MongoDB e-book
00:28

If you are in Mac OS X or Linux, MongoDB will require a directory in /data/db. You will need to create this directory and give your user full permissions. After installing MongoDB, open a terminal console and run the following:

>>> sudo mkdir -p /data/db

>>> whoami

yourname

>>> sudo chown yourname /data/db

Optionally, you can install MongoDB using Docker instead of following the video. I'd recommend doing this if you don't know what Docker is. If you don't, don't worry! There is no need to use Docker at all.

To install MongoDB through Docker, follow this very short guide: http://schoolofcode.me/blog/60377/installing-mongodb-through-docker

Installing MongoDB
07:55

Some frequently asked questions when running MongoDB. Please read especially with regards to the next video!

MongoDB FAQ
00:40
Introduction to MongoDB
07:19
Creating a PyCharm project that uses MongoDB and pymongo
06:35
Simplifying lists in Python with list comprehension
06:19

Revise a fabulous topic in Python with this quiz

Python list comprehension
2 questions
Introduction to Object-Oriented Programming
14:01
Creating our first class, the Post
06:19
Creating a Database class for database interactions
14:40
The last few Post methods
03:24
Having default parameter values in Python methods
05:03
Understanding dates in Python: the datetime module
02:34
Verifying that the Post methods all work
04:53
The Blog class and @classmethods
13:45
Verifying the Blog methods all work
05:36
Starting the menu and user interactions
09:45
Finalising the Menu class
06:32
Finally, running the application!
03:36

The code for the Terminal Blog program. Have a wee look after trying to code it yourself!

Terminal Blog program Python Code
00:11
+ Our first web application
20 lectures 02:36:30
How can we make our own API? What is Flask?
07:24
Python cls() and argument unpacking
09:32
Creating the User model for our application
05:22
Starting developing the User model
10:19
Creating the login and register
07:40
Finding blogs by a specific author
06:31
Allowing creation of blogs and posts
07:09
Creating the static resources and templates
04:05
Beginning CSS styling of pages
08:01
The user login page
14:32
The user registration page
06:11
Using Bootstrap for the first time for great styling
14:52
How can we display a list of blogs?
09:44
Displaying a list of posts
08:13
The Jinja2 if statement for structure control
02:03

Let's review some Jinja2 in this quiz!

Jinja2 revision
3 questions
Creating new blogs (front-end)
09:14
Finalising the application by allowing to create posts!
09:00

Check out the code for the web blog--remember to try to code it yourself first!

The Web Blog program Python Code
00:10
+ [2019] Price alerts for online web-stores
26 lectures 03:18:54
Creating new Python projects in PyCharm 2019
05:27
Get the price alert code here!
00:14
What are Flask Blueprints?
06:22
Creating our new app structure
05:30
Getting page content with requests
03:32
How to find the price on a website
04:28
Getting an element's content with BeautifulSoup
03:29
Using RegEx to get specific information from a string
10:14
Creating our Item model
10:38
Adding type hinting to our application so far
04:05
Starting up MongoDB and making sure it's working
01:03
Preparing our Item model for saving in MongoDB
06:23
Inserting Items into MongoDB
07:42
Retrieving Items from MongoDB
06:28
Notifying users in a simple way when the price is reached
16:36
What is an abstract class in Python?
08:05
Making more methods generic
10:47
Finishing up the Model superclass
09:01
How to force a subclass to have properties of a parent class
03:58
Type hinting the current object type in a method return
08:23
Creating items through the web interface
23:02
Styling our site using Bootstrap 4
09:37
Creating the Items blueprint
06:32
Creating a page to show all items
13:01
Creating alerts through the web interface
09:51
A couple problems and solutions with our app... and our way moving forward
04:26
+ [2019] Developing a complete front-end with Bootstrap 4
25 lectures 03:38:58
Introducing stores to our application
14:55
Getting rid of items
04:43
Testing our app with stores
05:40
Dataclasses in Python 3.7
13:59
Turning our models into dataclasses
09:27
Giving names to alerts in our application
04:12
Saving the last item price
03:58
Creating stores through the web interface
08:57
Editing alert properties
10:43
Linking the alert index to the edit page
03:46
Editing stores
07:18
Deleting alerts
03:38
Deleting stores
01:20
Registering users
34:05
Encrypting passwords in Python with passlib
06:41
Logging in
07:26
Viewing only your own alerts
07:10
What are Python decorators?
09:47
Limiting some pages only to logged in users
14:30
Adding a navigation bar using Bootstrap
08:37
Limiting actions to admins only
10:24
Logging out
00:42
Signing up with Mailgun
04:07
Sending e-mail with Mailgun
16:53
Creating the landing page
06:00
+ Simple development-stage deployments to Heroku
28 lectures 01:28:22

In this video we take a look at how to sign up for GitHub. You'll just need to go to http://github.com.

Signing up for GitHub
01:48

In this video we take a look at how to fork a repository from GitHub. Forking a repository copies it and puts it under your account, which means you can change code within the files at will.

Forking the GitHub repository from the last section
02:54

In this video we look at how to install Git on Windows. If you are not using Windows, the next few videos go over installing in other platforms.

How to install Git on Windows
03:02

In this video we go over using the Windows PowerShell, which comes with Git for Windows.

One important thing to note is that in the Windows PowerShell is that we must use the command `vim` instead of `vi`. We will look at this later on in the course.

How to use the Windows Git Shell
02:07

In this video we look at installing Git on Mac.

How to install Git on Mac
02:27

In this video we look at installing Git on Linux.

How to install Git on Linux
01:06

In this video we take a look at cloning the Git repository that you forked previously, into your computer from GitHub.

Cloning the Git repository from GitHub onto your computer
03:38

This video is important as it looks at the different statuses a file may be in during its Git lifetime.

File statuses and stages in Git
07:48

In this video we take a look at an important security measure: SSH keys, and how to generate one in your computer for use in GitHub. Whenever you use another computer, you will have to generate an SSH key for that computer to be able to authenticate with GitHub.

How to generate an SSH key for GitHub
05:26

In this video we look at two basic Git commands: git commit and git push, used to bundle files together as one 'change', and to push one of more of these bundles, the commits, into the remote repository, which we've got in GitHub.

Git commands: git commit and git push
08:26

In this video we look at another Git command: git log, used to check previous commits, their messages, authors, and dates.

Git command: git log to check previous commits
01:17

In this short video we look into signing up for Heroku, which is a free server service.

Signing up to Heroku
03:04

In order to easily control our Heroku applications and interact with them, we need to install the Heroku Toolbelt, which is a Command-Line Interface to Heroku itself.

Installing the Heroku Toolbelt (Command-Line Interface)
01:00

In this video we look into create a new Heroku app. We can do this via the website (as shown), or via the CLI.

Creating a new Heroku app
03:47
[New 2019] Changes to Heroku deployments
01:03

Environment variables are essential for security in deployments, as it means your sensitive information is not publicly available. In this video we look at getting values from environment variables in Python.

Getting values from environment variables in Python
05:08

In this video we look at setting the environment variables in Heroku.

Setting the environment variables in Heroku
01:22

Heroku needs a few files to be present in our project, to tell it things like which Python version we want to use, as well as a wrapping server, configuration files, and a Procfile, which tells Heroku how to run our application.

All in all, it needs:

  • Procfile
  • runtime.txt
  • (if using uWSGI), uwsgi.ini
Setting up Heroku required files in our project so Heroku knows what to run
05:56

In this video we look at committing and pushing the changes that we made in the last video when we added the required files.

Committing and pushing the new files to GitHub
02:21

Making sure our application runs with 1 server, which is the Free tier in Heroku.

Adding servers on Heroku (called 'scaling dynos')
01:57

In this video we deploy our app to Heroku, but, alas, it does not work yet. There are a couple things missing.

Deploying our app to Heroku
02:25

Heroku and MongoDB work well together, and MongoLab provides a free 'Sandbox' environment for our MongoDB instance.

Adding MongoLab to our Heroku app as an add-on
02:49

In this video we look at creating a new MongoLab user. This is not a requirement, and we will not be using the user we create, but in some instances we may want to have multiple users.

How to create a new MongoLab user
02:06

Next, we need to change our program's database URI to match the address of MongoLab.

Previously, we were only ever using a local MongoDB instance (127.0.0.1:27017), now each MongoLab database may have slightly different addresses. In addition, MongoLab requires that you authenticate (username and password) in your database.

Changing our program's database URI to match MongoLab's
02:26

We got an Internal Server Error, so in this video we learn how to check the Heroku logs in order to try and fix it.

Using the Heroku logs to fix an Internal Server Error
03:22

Now that the config.py file is present, we can re-run our app in Heroku and find one more error.

Running our deployed app in Heroku
02:16

The error stems from MongoLab's implementation of how they limit creation of databases. In MongoLab, we cannot use the 'fullstack' database we were using previously, but we have to use the database they give us. We can access this database with client.get_default_database().

Another error: using the URI default database
03:18

Hurrah! The app now works, and it is ready to be given to friends and family! However, remember Heroku in its free tier is not the most optimal form of deployment.

If we want to give the app to our users, we may need something a bit more robust.

In the next section we will look at deploying to a DigitalOcean server.

Verifying the app works, and next steps in the course
04:03
+ Deploying your apps manually to a server
12 lectures 53:06
DigitalOcean Droplets
00:36
Creating a DigitalOcean Droplet
05:40
Creating a non-root user
06:06
Configuring our new user
08:02
Installing Python in Ubuntu
00:40
Installing MongoDB in Ubuntu
03:33
Getting our application code
03:59
Configuring uWSGI and the system service
11:41
Configuring nginx
07:24
Creating a cron job in Ubuntu
03:34
Course conclusion. Thank you!
00:27
Bonus lecture: other courses and next steps
01:24
Requirements
  • A computer; any will do!
  • No software required, we'll install everything as we go.
  • We will also install Python in the course! We can use either Python2.7 or Python3.5
Description

The Complete Python Web Developer Course will lead you down a path of understanding and skill that may well, with work and patience, result in an income boost or a career change.

It is a one-stop-shop covering everything you need to start having ideas and creating Python web applications that engage visitors and provide them with value. In addition, I’ll always be available to help you further your learning and explore more avenues for success.

What do you have to do?

You’ll have immediate access to 8 carefully designed sections, each teaching and guiding you into creating a web application using Python: your challenge. I’ve created thorough, extensive, but easy to follow content which you’ll easily understand and absorb.

I recommend taking your time, as software development doesn’t happen overnight. Each section should take approximately one week, including developing the weekly challenge, reading around the subject, and practising further.

  • The course starts with the basics, including Python fundamentals, programming, and user interaction.

  • Then we will move onto how the internet works, making web requests and parsing webpages to get data from them using Python.

  • Now that you’ll have all the knowledge required, we’ll introduce our database of choice, MongoDB, and then proceed into creating our first Python web application: a blog where users can register and publish posts.

  • Then we will create a fantastic Python web application to notify you when prices of items in online stores go down; a really useful web app!

During all this, we’ll be learning about deploying our Python web applications, making it performing so it can scale to thousands of users, and usability and security issues.

Over the entire course you will learn:

  • Python

  • HTML

  • CSS

  • Responsive Design with Bootstrap

  • JavaScript

  • jQuery

  • MongoDB

  • Linux (UNIX)

  • APIs (both creating them and interacting with them)

  • Deployments to Heroku and DigitalOcean

What else will you get?

  • A friendly community to support you at all times

  • Personal contact with me: I’m always available to answer questions and help out

  • Lifetime access to course materials, even as more are released (and they are, very often!)

  • Hands-on learning to ensure you’re absorbing everything

  • A true understanding of the concepts of software development, design, and operations

By the time you’re done with the course you’ll have a fantastic set of fundamentals and extensive knowledge of Python and web development, which will allow you to easily continue learning and developing more and more advanced and engaging web applications.

It doesn’t matter how old you are or what you do professionally. I guarantee that anyone can benefit from learning web development and Python, but especially web application development.

So what are you waiting for? Sign up now, and I’ll see you on the inside!


Who this course is for:
  • This course is for students who know a little bit of Python or another programming language who want to learn about deployments and development with Python
  • If you are an absolute beginner in programming, taking an introductory Python course first could be helpful!