Changes between Initial Version and Version 2 of Ticket #36782
- Timestamp:
- Dec 8, 2025, 5:53:19 AM (101 minutes ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36782
- Property Owner set to
- Property Status new → assigned
-
Ticket #36782 – Description
initial v2 1 ###**Summary**1 **Summary** 2 2 3 3 Django provides a utility function, `django.core.management.utils.get_random_secret_key()`, for generating cryptographically secure secret keys. However, Django does not currently offer a built-in `django-admin` or `manage.py` command to generate a new SECRET_KEY for production use. … … 14 14 --- 15 15 16 ###**Proposed Feature**16 **Proposed Feature** 17 17 18 18 Introduce a new management command: … … 28 28 ``` 29 29 30 ###**Example Output**30 **Example Output** 31 31 32 32 ``` … … 36 36 --- 37 37 38 ###**Rationale**38 **Rationale** 39 39 40 40 1. **Consistency** – Django already provides the function but not an accessible command. … … 45 45 --- 46 46 47 ###**Proposed Implementation**47 **Proposed Implementation** 48 48 49 49 A new command under: … … 68 68 --- 69 69 70 ###**Documentation**70 **Documentation** 71 71 72 72 Add a section to `docs/ref/django-admin.txt` describing the new command with usage examples. … … 74 74 --- 75 75 76 ###**Tests**76 **Tests** 77 77 78 78 A test would be added to ensure: