Posts with #django tag

Use Docker to ease database schema migrations

Docker is very versatile, and can fulfill many (many) different use-cases. You've probably heard of it to put applications in production. Even though I wrote quite a few Dockerfiles to package and...

Edit Django geometries fields with Leaflet

After the previous article regarding Django, Leaflet and GeoJSON, I wanted to highlight the simplicity of GeoDjango geometries creation and edition with django-leaflet. It relies on Leaflet.draw...

Django : Create a QuerySet from a list, preserving order

I thought it would be an easy one, but found myself lost with 34 opened tabs on stackoverflow... The problem : keep it ordered Usually, obtaining a QuerySet from a list is quite simple : >>>...

Generate office documents with Django

In our recent Django projects, we had to create documents (Libre/OpenOffice, Microsoft Office, PDF...), and therefore created two components : django-appypod, providing document templates views,...

GeoDjango maps with Leaflet

A short introduction to web mapping with Django, using two very simple applications: django-leaflet and django-geojson, by Makina Corpus. We will build a map with all major weather stations of the...

Deploy Django projects using git push

Deploying stuff in one command is becoming the Holy Grail of development, with currently ten times more blog articles than Medieval crusades :) I could not miss the opportunity to write mine !...

Django : Do not forget Do Not Track

If you (fooly) Sail© on the Web® without Ghostery™, this website is currently tracking you. Sad news, but there are indeed 3 widgets (Disqus, Piwik and Twitter on the About page) that may collect...

Cheap debugging of PostgreSQL triggers in Django

Lately, we were hacking on PostgreSQL (PostGIS) triggers, and we quickly felt like debugging our code... Here is a cheap and quick way of printing out triggers variables and context through...

Simple and funky Web map printing

Strangely, users still insist in having Web page print capabilities, mostly to share, export or archive what they see. Even if relevant permalinks are often acceptable, we can't always dissuade...

Des cartes d'un autre monde, la suite

Bravo aux organisateurs ! L'édition 2012 des rencontres Django-fr a mis la barre très haut ! Ce fut un plaisir de retrouver, ou rencontrer, autant de gens sympathiques et intéressants dans un...

More...