Set up a Django async project with Daphne & NGINX on Ubuntu 18.04

In this post, we will set up a async Django project online using Daphne and NGINX. The current post is based on a few hours or research within the past few years. This configuration will be compatible with async events in Django. This diagram represents the relationship between technologies we will use in this post. … Lire la suite Set up a Django async project with Daphne & NGINX on Ubuntu 18.04

SCSS to CSS, Create a file watcher in PyCharm

I recently found a way to convert automatically SCSS files to CSS with PyCharm. Today, we will see how to create a file watcher and let it take care of everything. Compass Firstly, we need to install compass which will do for us the transpiling. File watcher Now, let’s create a file watcher which will … Lire la suite SCSS to CSS, Create a file watcher in PyCharm

PlantUML: Create a sequence diagram inside PyCharm

For many years, I was looking for an app to create sequence diagrams which could be easily editable by me or a peer later without hair pulling. Then, I found PlantUML. During a recent work, one colleague gave me the best solution I found so far. PlantUML By default, PlantUML is a java application. For … Lire la suite PlantUML: Create a sequence diagram inside PyCharm

Direnv: Protect sensitive credentials in your project with environment variables

Interested in people contributing to your project? while keeping your sensitive credentials out of the project? A common practice to prevent sensitive data to be in the source code is to use environment variables. Let’s see today how it is working with direnv. Install direnv for Linux Install direnv for Mac Hook direnv with your … Lire la suite Direnv: Protect sensitive credentials in your project with environment variables

Send a push notification with Firebase & Django

In this post, we will see how to send a push notification from a Django backend to a mobile app using Nativescript with Firebase. Create a Firebase account or connect with your google account: https://firebase.google.com/ Create a firebase project For Android: Add Android app to project via firebase project page Once created, download the google-services.json … Lire la suite Send a push notification with Firebase & Django

Synchroniser les tâches créées depuis Jira avec PyCharm

Je viens de découvrir comment synchroniser les tâches créées depuis Jira avec PyCharm, un bon atout pour gagner en productivité. Dans mon travail de développeur au quotidien, je suis constamment amené à créer de nouvelles “feature” branches basées sur des tickets créés dans Jira par le responsable produit. Précèdemment, je créais une nouvelle branche pour … Lire la suite Synchroniser les tâches créées depuis Jira avec PyCharm

Template de fichier dans PyCharm == Productivité

Je viens de découvrir comment créer un template de fichier dans Pycharm ce qui est très utile pour gagner du temps. En tant que développeur, nous sommes souvent amenés à créer de nouveaux fichiers avec une structure identique a des existants dans la base de code. Afin de faciliter la lecture et de pérenniser le … Lire la suite Template de fichier dans PyCharm == Productivité

repr vs str , Le duel des Titans

En langage Python, les fonctions repr et str semblent similaires dans leur utilisation, En quoi sont elle tout de même différentes ? Explication L’objectif de repr est de retourner une chaine précise de l’objet en entrée alors que celui de str et de retourner une chaine lisible pour l’utilisateur final. Exemples Voici, comment nous pouvons … Lire la suite repr vs str , Le duel des Titans