# Django SECRET\_KEY tutorial

**URL:** <https://forum.djangoproject.com/t/django-secret-key-tutorial/46117>\
**Category:** Using Django\
**Created:** [October 1, 2026, 12:57pm UTC](https://forum.djangoproject.com/t/django-secret-key-tutorial/46117 "2026-10-01T12:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsvincent](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/wsvincent/32/52_2.png) [@wsvincent](https://forum.djangoproject.com/u/wsvincent)\
**Post date:** [October 1, 2026, 12:57pm UTC](https://forum.djangoproject.com/t/django-secret-key-tutorial/46117/1 "2026-10-01T12:57:42Z")

</div>

Hi everyone, I wrote up a new tutorial on SECRET\_KEY, why it matters, how to generate a new one, and general best practices. I hope it’s helpful.

> **[Undocumented Django: Generating a SECRET\_KEY](https://learndjango.com/tutorials/generating-a-secret-key)**
>
> Exploring the "hidden features" lurking in Django's codebase
