Working with Virtual Environments in Python for Beginners

Virtual Environments in Python provides an isolated and self contained instance of the version of Python and all other modules or packages that a specific project is dependent on. Virtual Environments appear in the form of directory with the name of the environment we choose and contain the version of Python, scripts, libraries and packages that are available with in the virtual environment.

7 Comments
Working with Virtual Environments in Python for Beginners - TutLinks
Working with Virtual Environments in Python for Beginners - TutLinks

Setup Visual Studio Code for Python Development

In this tutorial, we will have an overview of an open source IDE VS Code and why we choose to go with it for Python development. We will also see how to setup Visual Studio Code for Python development and configure it for a sample Python based Flask hello world project.

2 Comments
Setup Visual Studio Code for Python Development - TutLinks
Setup Visual Studio Code for Python Development - TutLinks

Deploy FastAPI on Ubuntu and Serve using Caddy 2 Web Server

In this tutorial we will see how to Deploy FastAPI on Ubuntu. Our FastAPI application does CRUD operations on a PostgreSQL database running on Ubuntu 18.04.5 LTS (Bionic Beaver). We expose FastAPI running on Gunicorn as a reverse proxy using Caddy 2 Web Server.

3 Comments
Deploy FastAPI on Ubuntu and Serve using Caddy 2 Web Server – TutLinks
Deploy FastAPI on Ubuntu and Serve using Caddy 2 Web Server – TutLinks

Debug FastAPI in VS Code IDE

In this tutorial we will setup Visual Studio Code IDE to help debug FastAPI repository. Analyse the state of variables and see how to debug FastAPI in VS Code. To do this we will add a debug configuration and create a breakpoint in a sample FastAPI repository and hit that breakpoint.

1 Comment
Debug FastAPI in VS Code IDE – TutLinks
Debug FastAPI in VS Code IDE – TutLinks

301 Redirect from non-www to www for WordPress to resolve Redundant Hostnames

Sometimes few websites are set up in such a way that the example.com and www.example.com will be treated as different websites. Although both URLs have same content and represent the same website, tracking few analytics becomes cumbersome when the domain with and without www does not resolve to the same hostname.

0 Comments
301 Redirect to resolve redundant hostnames - TutLinks
301 Redirect to resolve redundant hostnames - TutLinks