How to use MySQL/MariaDB with Python, tutorial

How to use MySQL in Python

MySQL is the most popular open-source database management system. Today we will look at the usage of MySQL in Python via module mysql-connector-python also known as mysql.connector. Requirements Before you start, make sure you have the following: Basic Python 3 knowledge. Python and Pip installed. If not, run this command (for Debian and Ubuntu):sudo apt … Read more

How to setup Gunicorn and Nginx for Django on Debian

Installing and configuring Gunicorn with Nginx on Debian

If you develop your project on Django, then you probably know that you need a web server like nginx to serve your static files: images, stylesheets and so on. While Django has its own ability to serve static files, you should use it only during development. In this guide you will learn how to install … Read more

Fixing TemplateDoesNotExist Django error

Fixing Django TemplateDoesNotExist error

Django is a popular Python web framework. Because it is popular, a lot of people are learning Django. And if you’ve just started learning Django and are stuck with TemplateDoesNotExist error, see the solution in this article. “TemplateDoesNotExist at /” error So, when developing your Python Django web application, you can encounter the following error: … Read more

How to install Django, MariaDB on Debian 11

Configuring django with MariaDB on Debian

In this tutorial, I will show you how to install Django, MariaDB on Debian 11 (codenamed Bullseye) from official repository. This tutorial also applies to all Debian-based distribution, for example, Ubuntu. We will use Debian 11 because it is one of the most popular GNU/Linux distributions and is a well supported operating system. Installing Python … Read more