mirror of
https://github.com/django/django.git
synced 2025-01-22 08:10:28 +00:00
6b0b3eafd6
Django apps initialization to run management command triggers the admin autodiscovery. Importing django.contrib.auth.tokens creates an instance of PasswordResetTokenGenerator which required a SECRET_KEY. For several management commands, the token generator is unused. It should only complain about a missing SECRET_KEY when it is used.