#32664: Cannot run makemigrations management command without a SECRET_KEY
-------------------------------------+-------------------------------------
Reporter: François Freitag | Owner: François
Type: | Freitag
Cleanup/optimization | Status: new
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Florian Apolloner):
I think the proper fix would be to move
`PasswordResetTokenGenerator.secret` to a property so it is only accessed
when actually needed. This would also help tests that change the
`SECRET_KEY` and then wonder why `default_token_generator` does not pick
it up. `Lazy*` should be used as a last resort.
--
Ticket URL: <https://code.djangoproject.com/ticket/32664#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.9e575f94475e3e8c0947fffdbce013ca%40djangoproject.com.