Configuring Django app settings for production environment

Make Django settings secure

If you are running a Django project in a production environment then you have to take care of the way you manage your settings.py file. Most developers have one settings file for development and one for production. In this tutorial I will show you how to make your settings file meet production environment requirements. Is … Read more

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

Is Python easy to learn?

Is Python easy to learn?

The popularity of Python has spawned a vast amount of resources and articles on learning the language and programming techniques used in the language. Most of these resources focus on the theory of the language and Python in particular. However, one aspect that is often forgotten in these articles is the ease of learning the … Read more

PHP vs Python for backend

PHP vs Python for backend

Python is one of the most popular programming languages on the web today. Its popularity for high-performance programs is increasing on the web, but PHP is more famous for its simplicity, speed and low costs. Now there are new tools that can help you get a better balance between those 2 languages. This article is … Read more

Why should you learn Python?

Learn Python

Python is a dynamic programming language which is highly popular in the programming world. It is usually called as the ‘programming language for the 21st century’. In this article, we will discuss why should one learn Python? It is one of the important skill that is needed for the programming world. If one can write … Read more