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

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