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)

defect

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
next sprint. I think it's 1pt
Whiteboard: u=dev c=general p=1 s=2014.8
Assignee: nobody → rrosario
Landed on master: [bug 994070] Update purge_hashes for django 1.6
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.