Changes between Initial Version and Version 2 of Ticket #36782


Ignore:
Timestamp:
Dec 8, 2025, 5:53:19 AM (101 minutes ago)
Author:
Joe Philip
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36782

    • Property Owner set to Joe Philip
    • Property Status newassigned
  • Ticket #36782 – Description

    initial v2  
    1 ### **Summary**
     1**Summary**
    22
    33Django 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.
     
    1414---
    1515
    16 ### **Proposed Feature**
     16**Proposed Feature**
    1717
    1818Introduce a new management command:
     
    2828```
    2929
    30 ### **Example Output**
     30**Example Output**
    3131
    3232```
     
    3636---
    3737
    38 ### **Rationale**
     38**Rationale**
    3939
    40401. **Consistency** – Django already provides the function but not an accessible command.
     
    4545---
    4646
    47 ### **Proposed Implementation**
     47**Proposed Implementation**
    4848
    4949A new command under:
     
    6868---
    6969
    70 ### **Documentation**
     70**Documentation**
    7171
    7272Add a section to `docs/ref/django-admin.txt` describing the new command with usage examples.
     
    7474---
    7575
    76 ### **Tests**
     76**Tests**
    7777
    7878A test would be added to ensure:
Back to Top