# Django: serve a security.txt file

DevFeed: [Django: serve a security.txt file](<https://devfeed.tech/articles/django-serve-a-security-txt-file-62976.md>)

Original publisher: [Read original article](<https://adamj.eu/tech/2026/10/01/django-security-txt/>)

Author: Adam Johnson

Published: 2026-09-30T23:00:00Z

Content type: tutorial

Language: en

Sources: [Adam Johnson](<https://devfeed.tech/sources/adam-johnson.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Security](<https://devfeed.tech/topics/security.md>), [google play protect](<https://devfeed.tech/topics/google-play-protect.md>)

Tags: [bug-bounty](<https://devfeed.tech/tags/bug-bounty.md>), [django](<https://devfeed.tech/tags/django.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

A Django tutorial explains how to serve a security.txt file so security researchers can report vulnerabilities. It covers required file fields, HTTPS and content type requirements, and a Django view, URL configuration, tests, and a system check to keep the file current.

## Source excerpt

When a security researcher finds a vulnerability in your site, they need a way to tell you about it. Without a clear contact, they may resort to guessing at addresses like security@<yourdomain>, messaging random folks on social media, or give up. And of course, in the worst case, they ...