mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-17 22:35:11 +00:00
edited blogs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user