Skip to content

Tech I learned

Each week, I share a technical trick that I learned

  • Home
  • Code
  • Home
  • Code

Tag: django

Search in a BoundingBox with GeoDjango
Code / Django

Search in a BoundingBox with GeoDjango

03/01/202403/01/2024

My need was to search in a limited square area. Actually it was a little bit more tricky, I implemented a « Search in this …

Code / Django

Django tips, order randomly

18/10/202327/01/2024

Using Django Queryset, to get a random order by, just use the ? parameter Django doc : https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.order_by

Django tip, join in template
Code / Django

Django tip, join in template

13/10/2023

Here is my Django tip of the week (not provided every week 🙄) Let’s join in template ! Using template filter join Works well or …

Paginate QuerySet in Django
Code / Django

Paginate QuerySet in Django

13/08/202313/08/2023

To manage a process on big queryset without overload the DB and the RAM, set the following loop: ⚠️ you need to set a order_by …

Code / Deploiment / Django

Configure GeoDjango in Scalingo

13/08/202313/08/2023

To configure GeoDjango (which use GDAL) in Scalingo, you’ll have to follow their documentation here : https://doc.scalingo.com/platform/app/app-with-gdal Don’t take care of the caution note about …

django-extentions and more to enrich your development environment
Code / Python

django-extentions and more to enrich your development environment

15/02/202311/03/2023

I recently install django-extensions, ptpython and django-browser-reload packages on a project, it is convenient packages to Django developer. Installation install it with pip: or reference …

Check the licenses of your python dependencies
Code / Python

Check the licenses of your python dependencies

23/12/202225/12/2022

Licenses subject is a huge subject in open-source project because some of the licenses can be contaminating. Most common example is the GPL license, every …

Recent Posts

  • PostgreSQL tips
  • Convert a UUID in base57 with PostgreSQL (like Shortuuid)
  • PostgreSQL doesn’t know how to do division
  • GIT Blame in VSCode
  • Manage MAX_ID and auto_increment value

Categories

  • Code
  • Deploiment
  • Django
  • Flutter
  • Générale
  • Git/Github
  • Management
  • PostgreSQL
  • Python
  • Security
  • Tailwind
Copyright © 2025 Tech I learned. Powered by WordPress and Bam.