Edit

Django in government

I have this list of 50k Django projects I put together, and thought it might be more interesting to share specific verticals rather than the whole thing. Today: Django in governments around the world!

Here’s an overview of all countries using Django in their government websites. That’s 89 countries according to my dataset.

Map of world countries, with the ones using Django in blue

Top users

Here are the top 10 highest numbers of Django sites by country.

Country Government websites
Brazil 129
United States of America 84
Argentina 81
France 73
Nepal 48
Mexico 48
India 43
Ukraine 37
Peru 36
Colombia 25

There’s a lot of room for this to be affected by how countries choose to assign domain names to their websites, rather than accurately reflecting Django usage. But it’s interesting nonetheless!

Showcase

I thought I’d share some of the sites I find particularly noteworthy, from that top 10 and otherwise. With the caveat that there are lots of governments and sites I know little about, so there’s some bias towards things that are closer to home for me.

Ireland

Screenshot of Ireland.ie website, with a green and white theme. The homepage states 'This is Ireland'

I know very little about ireland.ie – but I know that DjangoCon Europe 2025 will be in Dublin, Ireland! ☘️ So it’s very topical. See you there?

As far as government websites in Ireland, there are other heavy-hitters on the list like gov.ie. The website’s design is very simple, behind the scenes I’m sure there is a lot of backoffice work going on.

Sweden

Screenshot of Visit Sweden website, with a yellow and white theme. The site states 'Sweden - A destination of a different nature' with a wide picture of sea kayaking

Visit Sweden I know a tiny bit more about, only because the Fröjd agency who did the work published the site on Made with Wagtail. I believe they also published some of the site’s building blocks on GitHub, like django-react-templatetags (just what it sounds like) and Wagtail-Pipit (a Next.js + Wagtail starter kit). Thank you Fröjd for sharing your work!

France

Screenshot of Sites faciles, a french govt website with a black navy blue and white theme

Sites faciles from the French government is pretty meta – it’s a starter kit for other government websites built with Django and Wagtail! And it’s fully open source, at numerique-gouv/sites-faciles on GitHub.

I’m also very interested in what the French government is doing in Django because they have one of the most advanced set of guidelines on digital emissions / the carbon footprint of government websites, the Arcep Digital Sustainability info page is great, and links to an english version of those guidelines (“General policy framework for the ecodesign of digital services (RGESN)”).

United States

Screenshot of the NASA JPL website, with a "JPL Dare mighty things" slogan, and a hero image of the Pillars of Creation

A picture of the Pillars of Creation by the James Webb Space Telescope on the front page of a Django site… isn’t that the coolest thing ever? The JPL website at NASA is built with Django, and they also open source some of its components: the Explorer 1 Design System, and tools to manage an ecosystem of websites. Their friends at Caltech also have a lot of open source Django projects, and elsewhere at NASA the NASA NAS data portal and the STEM Gateway are also built with Django!

I find this one particularly cool because beyond the open sourcing, they were also able to talk about their experience and tools at conferences – which is rare in the public sector! Check out their DjangoCon US 2022 talk, A Management Layer for Scalable, Multitenant Django with Addison Hardy and James Ray.


Also in the US – the Consumer Financial Protection Bureau website is worth a look too!

Screenshot of the CFP website. The banner states "On your side through life’s financial moments."

This one I find extra special because the whole site is open source, available on GitHub at cfpb/consumerfinance.gov. This is one of the best examples I know of using Jinja at scale – and I wish we saw more of that in the Django world!

Argentina

Screenshot of the mi Argentina login form

Some of Argentina’s government portal is built with Django – specifically their miArgentina authentication service! And, you guessed it, some of it is open source too.

Czechia

Screenshot of the Verified Online Identity platform from Czechia

MojeID from Czechia is another Django authentication service. Maybe we’ll meet their team at EuroPython 2025 in Prague?.

New Zealand

Screenshot of the RealMe New Zealand homepage

In New Zealand, RealMe is another online identity service that uses Django :)

Mexico

Screenshot of the MéxicoX website

MéxicoX is an online course platform from the government of Mexico, built with Django. Pretty cool to see this type of web app in the public sector!

Ukraine

Screenshot of the Ukraine government services guide

Back in Europe, the Ukraine government services guide is also built with Django. They also have open source code on GitHub, sadly not this specific website.

Tunisia

Screenshot of the Tunisia national open data platform

Tunisia’s national open data platform is built with Django! Interestingly, so are the open data platforms of Bahrain and of Lithuania. Also in the Python world, the CKAN platform is very popular – and it’s built on top of the Flask framework.

Chad

Screenshot of the Covid 19 platform of Chad

Also in Africa, Chad’s Covid-19 online information and pass platform uses Django, a great example of how the framework contributes to public health.

Sudan

Screenshot of the Sudan passport booking system website

Sudan’s passport and immigration online booking system! Sudan isn’t too far from DjangoCon Africa 2025 in Tanzania, there will definitely be travelers from Sudan using this platform as part of their travel logistics to attend.

Türkiye

Screenshot of the Türkiye Ministry of Education website

In Türkiye / Turkey, the Ministry of Education website is built with Django!

Uzbekistan

Screenshot of the Uzbekistan parliament website

The Uzbekistan parliament website is also built with Django!

Canada

Screenshot of the Government of Canada’s Open Government Portal

Another pretty cool open data portal, this time from Canada: Open Government Portal. And part of it is open source – Open Canada Solr Search (OCS), a Django + Solr search application.

Thanks Gavin Anderegg for the suggestion!

Romania

Screenshot of the Romanian National Institute for Research & Development in Informatics

The Romanian National Institute for Research & Development in Informatics is built with Django (and Wagtail).

India

Screenshot of the National Test House website

Last but not least, in India, we have the National Test House website from the Department of Consumer Affairs. And the Delhi Tourism board website is also Django. Django is big in India – DjangoCon India, anyone?

Methodology and data

That’s a lot of sites, but really just the tip of the iceberg. My Django in government dataset is just shy of 1000 websites, and that’s only based on the most predictable domain name patterns:

select origin, rank, dj_version, last_modified
from w_dj
where regexp_matches(
  origin,
  '\.((gov|government|gob|gouv|gv)\.?[a-z]{0,2}$|gc\.ca|gouv\.fr|govt\.nz|go\.kr|overheid\.nl|admin\.ch|europa\.eu|bund\.de|(gop|gos|gkp|gob|gog|gok)\.pk|canada\.ca|bund\.de)'
);

The original dataset I collected by crawling about 20M websites from the Chrome UX Report dataset, running common checks to detect Django: Static files URL patterns, sessionid cookie, csrfmiddlewaretoken, etc. See Detecting Wagtail in the wild and my Detect Wagtail project for more information about how this type of detection works.

Cross-referencing those 50k websites with other sources, we’re likely to be an order of magnitude below the actual number of Django projects out there, accounting for public sites that aren’t detectable, internal sites, and mobile apps or other projects that aren’t publicly visible in any way.

Missing countries

There are lots of gaps on the map I’m surprised about! In particular Germany, Iceland, China, Japan. If you’re aware of government websites in those countries that are built with Django, please let me know!