Traditional vs Single Page websites and which language to learn

This post is an answer I gave to a student on my Udemy course: Build your own Backend using Django REST Framework.

A summary of the question was: What is the difference between single page and traditional websites, and which language should I learn for each one.

Here is my answer below:

Read more

Setting up PostgreSQL database with a Django Docker application

In this video, I’ll show you how to set up a PostgreSQL database with a Django Docker application. This post follows from a previous post which shows you how to Dockerize a Django REST Framework project. Both videos were inspired by my course Build Your Own Backend REST API using Python and the Django REST Framework on Udemy.

In the course, I build a REST API using Vagrant, but Vagrant is not the only way. You can use Docker, it just has a steeper learning curve. Hopefully, these two posts will help illustrate how to do it. If you have any questions, please let me know in the comments below.

Video demonstration:

Beginner’s Guide to Python – Lesson 10 – Virtual Environments

Welcome to the Beginner’s Guide to Python! This is video #10 in the series. In this video, I’m going to show you how to install and use packages in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Beginner’s Guide to Python – Lesson 09 – Virtual Environments

Welcome to the Beginner’s Guide to Python! This is video #9 in the series. In this video, I’m going to show you how to use virtual environments in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Fixing Git Bash Vagrant issue

The following steps will fix the issue where the blank shell input appears after running `vagrant ssh` on Windows 10:

Screenshot of Git Bash blank terminal input

This bug appears to be caused by a conflict between the ssh executable that comes with vagrant and the one that comes with Git Bash.

The problem can be solved by setting the VAGRANT_PREFER_SYSTEM_BIN environment variable to 1.

To do this, follow the below steps:

Step 1) Click Start and type “System” to open up the System menu within control panel.

Screenshot of clicking start and typing System and selecting system menu

Step 2) Click Advanced system settings from the System menu.

Screenshot of clicking Advanced system settings from within the system menu

Step 3) From the System Properties window, click on Environment Variables…

Screenshot of clicking Environment Variables from the System Properties window

Step 4) Under System variables, select New… to add a new environment variable.

Screenshot of clicking New from within the System variables section of the Environment Variables window

Step 5) In the Variable name box, type VAGRANT_PREFER_SYSTEM_BIN and in the Variable value box enter 1 and click OK.

Screenshot of typing VAGRANT_PREFER_SYSTEM_BIN within Variable name and 1 within Variable value

Step 6) Close and re-open any Git Bash windows you have open, and re-run vagrant ssh.

You should now be able to execute commands on you Vagrant server.

 

Beginner’s Guide to Python – Lesson 08 – Dictionaries and For Loops

Welcome to the Beginner’s Guide to Python! This is video #8 in the series. In this video, I’m going to show you how to use dictionaries and for loops in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Beginner’s Guide to Python – Lesson 07 – Lists and sets

Welcome to the Beginner’s Guide to Python! This is video #7 in the series. In this video, I’m going to show you how to use lists and sets in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Beginner’s Guide to Python – Lesson 06 – Simple Functions

Welcome to the Beginner’s Guide to Python! This is video #6 in the series. In this video, I’m going to show you how to create and use functions in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Beginner’s Guide to Python – Lesson 05 – While Loops

Welcome to the Beginner’s Guide to Python! This is video #5 in the series. In this video, I’m going to teach you how to use simple while loops in Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.

Beginner’s Guide to Python – Lesson 04 – Simple If Statements

Welcome to the Beginner’s Guide to Python! This is video #4 in the series. In this video, I’m going to explain how to write simple conditional statements using Python.

If you have any comments or questions, let me know in the comments below or on Youtube. Subscribe here to get notified of the next video.

Access all the videos in the series.