edited blogs

This commit is contained in:
2025-08-05 03:25:00 +03:00
parent eb4fdaff78
commit 64bfc4f439
19 changed files with 66 additions and 56 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
+++
title = "Django Secret Key Tutorial"
description = "Managing secrets"
author = "Ian Andwati"
author = "mockingspectre"
date = 2022-11-11T15:34:14.160Z
[taxonomies]
tags = ["tutorial", "django", "python", ".env"]
@@ -9,7 +9,7 @@ tags = ["tutorial", "django", "python", ".env"]
Managing the Django SECRET_KEY variable.
<!-- more -->
The Django `SECRET_KEY` variable is very crucial to your Django application. The secret key must be a large random value and it must be kept secret. Leaking this value to unauthorized people could lead to a security breach. The SECRET_KEY is used in Django for cryptographic signing. It is used to generate tokens and hashes, they can be recreated using this variable. If it is not configured Django throws a `django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty` error