Course

Backend REST API with Python and Django by London App Developer

5

(2)

5h24m of course on video.

Quality content and selected for your learning.

Certificate

Download your digital certificate of course completion after watching all course videos.

Exercises to train your knowledge

Many of the courses available have exercises to help with learning.

Free lifetime access

This course is free today and always will be, from start to finish you will pay nothing.

Teacher

London App Developer

Hi I'm Mark. I'm a full-stack software developer who loves to learn and teach new technologies.

Ver sobre

Course content preview

Build a Backend REST API with Python

0h01m

01 Introduction

0h01m

02 How to take this course

0h01m

03 Technologies used

0h05m

04 Installing Git, VirtualBox, Vagrant, Atom and ModHeader

0h08m

05 Creating a workspace

0h07m

06 Creating a Git project

0h08m

07 Creating a Vagrantfile

0h02m

08 Configuring our Vagrant Box

0h05m

09 Running and connecting to our dev server

0h03m

10 Running a hello world script

0h05m

11 Create Python Virtual Environment

0h06m

12 Install required Python packages

0h03m

13 Create a new Django project

0h04m

14 Enable our app in the Django settings file

0h03m

15 Saving our requirements

0h03m

16 Test and commit our changes

0h05m

17 What are Django models?

0h00m

18 Create our user database model

0h15m

19 Add a user model manager

0h09m

Watch the 1st video of the course

Sign in or Register to access the course.

Do not worry, it is free!

Share

Evaluate course

Go to certificates

Report a problem

Course content

0h01m

Build a Backend REST API with Python

Welcome to our playlist. Here you'll find every lesson of our beginner course Build a Backend REST API with Python

0h01m

01 Introduction

Introduction video to How to build a REST API using Python

0h01m

02 How to take this course

In this lesson I explain the teaching style and how best to take this course.

Command Line Cheat Sheet: https://drive.google.com/file/d/0B9ZdsGRs88lDUUR4dTM3V2dtMDQ/view

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h05m

03 Technologies used

To build our REST API we are going to use Vagrant, VirtualBox, Atom, Python, Git, Django and Django REST Framework. In this lesson I explain how these will work together to create our REST API.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h08m

04 Installing Git, VirtualBox, Vagrant, Atom and ModHeader

In this lesson I show you how to install all of the applications required for this course. 

I demonstrate using Windows, however, all of the applications required are available for Mac and Linux. 

If you already have these tools installed or you know how to install them yourself then feel free to skip this lesson. 

Just make sure you have Vagrant, VirtualBox, Atom, Git-SCM and ModHeader (a chrome extension) installed. You can find the links to each one in the resources.

IMPORTANT UPDATE REGARDING VAGRANT

The latest Vagrant 2.0 is not compatible with the latest VirtualBox 5.2 (as of 2017-10-25). There is an open bug on the Vagrant GitHub (https://github.com/hashicorp/vagrant/issues/9090) and hopefully Hashicorp resolve this soon.

In the mean time, the best course of action is to download VirtualBox 5.1 from https://www.virtualbox.org/wiki/Download_Old_Builds

(Thank you James for pointing this out)

--

Vagrant: https://www.vagrantup.com/
VirtualBox: https://www.virtualbox.org/
ModHeader: https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en
Atom: https://atom.io/
Git: https://git-scm.com/
Command Line Cheat Sheet: https://drive.google.com/file/d/0B9ZdsGRs88lDUUR4dTM3V2dtMDQ/view?usp=sharing

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h07m

05 Creating a workspace

In this lesson I'll explain how to create a local workspace where we will be storing all the code for our API.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h08m

06 Creating a Git project

In this lesson I'll show you how to create a README file for our project and initialise a new Git repository. I'll also show you how to make our first Git commit (something we'll be doing lots of throughout the course).

Update: The official GitHub Python .gitignore file is missing `.vagrant` from the list of ignored files. I've since updated this link to point to an extended version of the original Python.gitignore file which includes this extra item as well as `.sqlite3`. This makes Git ignore the temporary vagrant files and database which would typically be excluded from the git repository. (Thanks Keith for pointing this out!).

GitHub Markdown Cheatsheet: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
Command Line Cheat Sheet: https://drive.google.com/file/d/0B9ZdsGRs88lDUUR4dTM3V2dtMDQ/view?usp=sharing
GitHub Python.gitignore: https://gist.github.com/LondonAppDev/66c3291e4f487ac92fcc96735e44c35e

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h02m

07 Creating a Vagrantfile

In this lesson I'll show you how to create a Vagrantfile which we will use to describe the server we need for our back-end API.

Command Line Cheat Sheet: https://drive.google.com/file/d/0B9ZdsGRs88lDUUR4dTM3V2dtMDQ/view?usp=sharing
Vagrant: https://www.vagrantup.com/

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h05m

08 Configuring our Vagrant Box

In this lesson I'll teach you how to customise your Vagrantfile to describe a server which has all the required dependencies and settings to build and test our API.

Vagrantfile: https://gist.github.com/LondonAppDev/d990ab5354673582c35df1ee277d6c24

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h03m

09 Running and connecting to our dev server

Here I will show you how to start and connect to our development server.

IMPORTANT UPDATE

If you get the "No usable default provider could be found for your system." when running vagrant up, read this:

This is because the latest Vagrant 2.0 is not compatible with the latest VirtualBox 5.2 (as of 2017-10-25). There is an open bug on the Vagrant GitHub (https://github.com/hashicorp/vagrant/issues/9090) and hopefully Hashicorp resolve this soon.

In the mean time, you can resolve this by uninstalling VirtualBox and downloading VirtualBox 5.1 from https://www.virtualbox.org/wiki/Download_Old_Builds

If you have any issues please let me know in the Q

0h05m

10 Running a hello world script

In this lesson I teach you how to run a traditional Python "Hello World" script on our newly created server.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h06m

11 Create Python Virtual Environment

In this lesson, I'll show you how to create a Python Virtual Environment using virtualenvwrapper.

Virtual Environment (Docs): http://python-guide.readthedocs.io/en/latest/dev/virtualenvs/

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h03m

12 Install required Python packages

In this lesson I'll show you how to install the required Python packages using Python PIP.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h04m

13 Create a new Django project

In this lesson I'll show you have to create a new Django project and app using the Django CLI.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h03m

14 Enable our app in the Django settings file

In this lesson I'll show you how to enable our newly created app in the Django settings file.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h03m

15 Saving our requirements

Here I'll show you how to save the Python PIP dependencies to a requirements file.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h05m

16 Test and commit our changes

In this lesson I'll show you how to test and commit the changes to Git.

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h00m

17 What are Django models?

In this lesson I'll introduce you to the concept of Django Models. 

Django Models (Official Docs): https://docs.djangoproject.com/en/1.11/topics/db/models/

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h15m

18 Create our user database model

Here I'll show you how to create a user database model which we will use to store our user profiles.

models.py: https://gist.github.com/LondonAppDev/01feb984211e1237f81ca3e4bdb1eeb7
Django Model Fields (Official Docs): https://docs.djangoproject.com/en/1.11/ref/models/fields/
Substituting a custom User model (Official Docs): https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#auth-custom-user

--

This video is from the old version of our course:
Build a Backend REST API with Python

0h09m

19 Add a user model manager

In this lesson I'll show you how to create a model manager for our user profile model. This model manager will be used to help Django work with our custom user model.

UserProfileManager models.py: https://gist.github.com/LondonAppDev/9e6ba4ea580e5ee4bc3c04d3914c8119
normalize_email (Official Docs): https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#django.contrib.auth.models.BaseUserManager.normalize_email

--

This video is from the old version of our course:
Build a Backend REST API with Python