Posts with the Django tag

Leaflet maps in Django with model-backed geoJSON data

Python Django GIS Leaflet geojson

2 December, 2020 (updated 9 April, 2021)

– We can create Leaflet maps with simple location data, using only the default Django models and a home-made geoJSON serialiser. Let's avoid bloated geographical libraries and see how lightweight we can get our maps to be.



Setting environment variables for Django in Linux

Python Django Linux

22 September, 2020

– Setting environment variables for your Django web-application is pretty simple: here's how you do it.



Slug routing in Django

Django

2 April, 2020

– URL routing with slugs is a lot prettier (and possibly a bit safer) than simply routing with IDs. This tutorial will show you how to set up a Django website from scratch, complete with working slug URLs.