django-leaflet
A Django map widget using Leaflet
Decision gist · record as of 2026-08-14
Yes, if you need Leaflet maps in a Django project. Low install friction, stable production status, and active repository support make it a sound choice. The LGPL-3.0-only license is a consideration for proprietary work but poses no barrier for open-source projects. No known vulnerabilities. Maintenance pace is slower than recent, but the package is mature and the underlying Leaflet library is widely used.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and Django as a runtime dependency.
- Low friction install with a single runtime dependency on django.
- Last release was 256 days ago; repository is active and not archived, though maintenance pace appears to have slowed.
License · maintenance · safety
LGPL-3.0-only (copyleft) — Licensed under LGPL-3.0-only (copyleft). You must disclose source code modifications and distribute derivative works under the same license; suitable for open-source projects but requires careful review for proprietary applications.
last release 2025-12-01 (256 days) · last repo commit 2025-12-01 · 748 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 111,170 downloads/mo, #12,429 on PyPI
Alternatives
Verify before relying
pip install django-leaflet
# In Django settings.py
INSTALLED_APPS = ['leaflet', ...]
# In a template
{% load leaflet_tags %}
{% leaflet_js %}
{% leaflet_css %}- Whether the embedded Leaflet version 1.9.3 receives security updates independently or requires django-leaflet releases
- Compatibility with django-geojson and whether that integration requires additional setup beyond what the package provides
What it is and what it does
django-leaflet packages the Leaflet JavaScript mapping library (version 1.9.3) as a reusable Django app, eliminating the need to embed map assets in every project. It provides form widgets for geometry editing, template tags for rendering maps, and centralized control over map appearance and behavior through Django settings.
The package is designed for developers building location-aware Django applications who want interactive client-side maps without managing Leaflet dependencies manually. It supports geometry edition through form widgets and integrates with geographic data workflows, though spatial database support is optional—you can handle geographic data without PostGIS or similar if needed.
Use it for
- Add interactive map widgets to Django admin or custom forms for location selection and geometry editing.
- Display geographic data on web pages using Leaflet maps configured entirely from Django settings.
- Build location-based applications (e.g., store locators, event maps) without duplicating Leaflet setup across projects.
- Manage map appearance and behavior (tiles, zoom, center) at deployment time via Django configuration.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Leaflet maps in a Django project.
Low install friction, stable production status, and active repository support make it a sound choice. The LGPL-3.0-only license is a consideration for proprietary work but poses no barrier for open-source projects. No known vulnerabilities. Maintenance pace is slower than recent, but the package is mature and the underlying Leaflet library is widely used.
Install
django-leaflet on PyPI
Before you install
Low friction install with a single runtime dependency on django. Last release was 256 days ago; repository is active and not archived, though maintenance pace appears to have slowed.
Requires Python 3.10 or later and Django as a runtime dependency.
License in practice
Licensed under LGPL-3.0-only (copyleft). You must disclose source code modifications and distribute derivative works under the same license; suitable for open-source projects but requires careful review for proprietary applications.
Quickstart
pip install django-leaflet
# In Django settings.py
INSTALLED_APPS = ['leaflet', ...]
# In a template
{% load leaflet_tags %}
{% leaflet_js %}
{% leaflet_css %}
Verify before relying
- Whether the embedded Leaflet version 1.9.3 receives security updates independently or requires django-leaflet releases
- Compatibility with django-geojson and whether that integration requires additional setup beyond what the package provides
Package facts
| License | LGPL-3.0-only copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjango |
| Maintenance | Aging 256 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 111,170 / month, #12,429 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Utilities |
Evidence: django_leaflet-0.33.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “leaflet django integration”
- django-leafletIntegrates the Leaflet JavaScript mapping library into Django…
- django-map-widgetsProvides interactive and static map widgets for Django GeoDjango form…
- ipyleafletipyleaflet embeds interactive Leaflet maps directly into Jupyter…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also django-map-widgets · ipyleaflet · jupyter-leaflet · folium · django-bootstrap5 · django-bootstrap3 · django-bootstrap4 · django-js-asset · Cartopy · highcharts-maps