Python Applications Packaging with Setuptools

  • #8
  • Jan 08, 2020

In this lesson you will learn how to package your python application. I will use setuptools to illustrate the process. Setuptools is de facto standard for packaging and distribution of python modules. …

Nginx + Django Static Files Classical Approach

  • #7
  • Jan 05, 2020

This lesson is continuation of lesson #6. We will configure nginx as systemd service and place it in front of our gunicorn service. Also, I will explain in detail relationship …

Gunicorn

  • #6
  • Jan 01, 2020

In this lesson you will learn in less than 10 minutes how to setup a gunicorn systemd service on your local computer. You will be able switch between development and production environment …

Django Deployments General Overview

  • #5
  • Dec 29, 2019

In this lesson I show a general overview of django deployments. I show how development environment different in general from production. Two simple production scenarios are presented. This lesson is only introduction …

Model Methods

  • #4
  • Dec 24, 2019

Application logic does not belong to django views, it is a good practice to move it inside other modules. In this lesson you will learn how to offload business logic to a …

Django Logging Requests

  • #3
  • Dec 23, 2019

Django logging behaves differently in development and production environments. This is a common trap for many developers. The confusion comes mostly because 'django.server' logger works only in development (DEBUG=True + runserver command); …

DRY for Simple Views in Django

  • #2
  • Dec 18, 2019

In real world web applications it is necessary to write standard pages like privacy policy, cookies policy, terms. Those pages are implemented as very simple Django views and tend to be very …

Python3 f-Strings - a Better Way to Format Strings

  • #1
  • Dec 16, 2019

Python supports multiple ways to format text strings. These include %-formatting , str.format(). Each of these methods have their advantages, but in addition have disadvantages that make them cumbersome to use in …

Subscribe to the newsletter

Be always informed about latest news, lessons, courses. I will never send more than one email per week.