Closed
Bug 994070
Opened 11 years ago
Closed 11 years ago
[traceback] ImportError: cannot import name UNUSABLE_PASSWORD
Categories
(support.mozilla.org :: General, defect, P1)
support.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
2014Q2
People
(Reporter: rrosario, Assigned: rrosario)
Details
(Whiteboard: u=dev c=general p=1 s=2014.8)
The purge_hashes management command (weekly cronjob) has been failing since django 1.6. Django changed their implementation of unusable passwords to be more secure. We need to modify the command.
Traceback (most recent call last):
File "manage.py", line 34, in <module>
execute_from_command_line(sys.argv)
File "/data/support/www/support.mozilla.org/kitsune/vendor/src/django/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/data/support/www/support.mozilla.org/kitsune/vendor/src/django/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/data/support/www/support.mozilla.org/kitsune/vendor/src/django/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/data/support/www/support.mozilla.org/kitsune/vendor/src/django/django/core/management/__init__.py", line 75, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/data/support/www/support.mozilla.org/kitsune/vendor/src/django/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/data/support/www/support.mozilla.org/kitsune/kitsune/users/management/commands/purge_hashes.py", line 4, in <module>
from django.contrib.auth.hashers import UNUSABLE_PASSWORD
ImportError: cannot import name UNUSABLE_PASSWORD
| Assignee | ||
Comment 1•11 years ago
|
||
next sprint. I think it's 1pt
Whiteboard: u=dev c=general p=1 s=2014.8
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rrosario
| Assignee | ||
Comment 2•11 years ago
|
||
In a pull request:
https://github.com/mozilla/kitsune/pull/1910
| Assignee | ||
Comment 3•11 years ago
|
||
Landed on master:
[bug 994070] Update purge_hashes for django 1.6
| Assignee | ||
Comment 4•11 years ago
|
||
Deployed to prod.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•