18 articles

📰 Dev.to · DoriDoro

Articles from Dev.to · DoriDoro · 18 articles · Updated every 3 hours · View all reads

All ⚡ AI Lessons (9405) ArXiv cs.AIDev.to · FORUM WEBForbes InnovationDev.to AIOpenAI NewsHugging Face Blog
Understanding the differences between `reverse()` and `reverse_lazy()` in Django's `get_absolute_url()` method.
Dev.to · DoriDoro 1y ago
Understanding the differences between `reverse()` and `reverse_lazy()` in Django's `get_absolute_url()` method.
Introduction Django provides two powerful utilities for generating URLs dynamically:...
How to create a Django password validator?
Dev.to · DoriDoro 1y ago
How to create a Django password validator?
Introduction As the Django documentation says: "A validator is a callable that takes a...
Django messages framework
Dev.to · DoriDoro 1y ago
Django messages framework
Introduction: The Django framework already provides all the necessary implementations to...
Various `lxml.html` techniques explained
Dev.to · DoriDoro 1y ago
Various `lxml.html` techniques explained
Introduction: This article shows some basic methods of the lxml.html object. ...
Django SafeString
Dev.to · DoriDoro 1y ago
Django SafeString
Introduction: django.utils.safestring.SafeString is a class in Django's...
What is `prefix_default_language` in Django?
Dev.to · DoriDoro 1y ago
What is `prefix_default_language` in Django?
The prefix_default_language is a configuration setting in Django's internationalization (i18n)...
Understanding Django template inheritance
Dev.to · DoriDoro 1y ago
Understanding Django template inheritance
Introduction As the Django documentation says: The most powerful - and therefore most...
Make a Django project production-ready, create a Docker Image and use GitHub CI/CD to automate the push of the Docker image
Dev.to · DoriDoro 1y ago
Make a Django project production-ready, create a Docker Image and use GitHub CI/CD to automate the push of the Docker image
Introduction: In this article, we will walk through a detailed explanation of Making...
Adding translation to Django Portfolio project
Dev.to · DoriDoro 1y ago
Adding translation to Django Portfolio project
Introduction To make your Django project accessible in multiple languages (German, French,...
Usage of Django `.values_list()` method in a view
Dev.to · DoriDoro 1y ago
Usage of Django `.values_list()` method in a view
Introduction My question was when I am using Django's .values_list() method in a view, is...
Guide to install and set up the package `django-modeltranslation` into a Django projcet.
Dev.to · DoriDoro 1y ago
Guide to install and set up the package `django-modeltranslation` into a Django projcet.
Introduction I was faced with the difficulty of translating large amounts of content in my...
Django: `render_to_string()` funtion
Dev.to · DoriDoro 1y ago
Django: `render_to_string()` funtion
Introduction In Django, the render_to_string() function is used to render a template into...
What is the difference between `gettext` and `gettext_lazy`?
Dev.to · DoriDoro 1y ago
What is the difference between `gettext` and `gettext_lazy`?
The difference between gettext and gettext_lazy primarily lies in when the translation of the string...
Understanding the importance of binding the port in Dockerfile
Dev.to · DoriDoro 1y ago
Understanding the importance of binding the port in Dockerfile
For a Django project I created this dockerfile: # Dockerfile FROM python:3.11-slim WORKDIR...