Augusto Destrero Articles




  • Thu 21 November 2019
  • web

Django asynchronous tasks without Celery

Do you want to perform a long running task in your Django web app without using Celery? Follow this simple guide to implement Django asynchronous tasks.




Backup and restore apt packages on Debian-Ubuntu

Suppose you want to install all the apt packages already installed on one server to another one. On the source machine execute the following commands to make a list of installed packages and their “states” (installed manually or automatically): sudo dpkg --get-selections > pkgs_selection.lst sudo apt-mark showauto > …

A Django custom command to write model fields on an Excel file

Suppose you need to write down your model fields on an Excel file, for example to complement the documentation of your code. Django has built in functions to introspect models and fields of an app, and you can leverage this API to have the information you need. You can use …

A simple Python email gateway

Say you have a Django web application that you want to integrate with emails to make it possibile to send data and files to your web application over SMTP. The good news is that Python has a simple SMTP daemon in the standard library, together with modules to parse emails …