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 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 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

Python – Flask vs Django

Flask vs Django

Django is built for rapid development, and there are many reasons why you might choose to use it. It does a lot of things behind the scenes to make your life easier. It gives you a lot of choices for how your views and templates are structured, and you get to play around with the … Read more