DRY for Simple Views in Django

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 …

Watch

Django Logging Requests

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); …

Watch

Model Methods

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 …

Watch

Gunicorn

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 …

Watch

Nginx + Django Static Files Classical Approach

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 …

Watch

Celery Tip - Which I Bet You Didn't Know

Did you know that you can use filesystem as broker transport in Celery?

This lesson will show you how. Use of filesystem as transport saves you a lot of time in development and …

Watch

Wagtail - Part 2

In this video you will learn about structural content, its advantages and how to use it with Wagtail CMS.

Wagtail provides StreamField which enables users to have full control over content blocks. It …

Watch

Django Settings Module - Different Structure

In this video you will learn a different, more practical way to structure your settings module. No external dependencies will be used.

Watch

  • Lesson #16
  • Feb 08, 2020
  • django
Django Extensions

By far one of the most useful app to include in your django toolbox is Django Extensions. It is a must have app for any django project. It provides a bunch …

Watch