the ScryptPasswordHasher class variables you might end up overflowing the
-The solution is to increase the size of the password field (this example uses
-256 characters but it can be larger). You can do this using the django shell
-from your project root::
- $ cd ~/my_django_project_root_with_manage_py_file_in_it
- $ python manage.py shell
- Python 2.7.3 (default, May 4 2012, 11:07:18)
- [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from django.contrib.auth import models
- >>> pf = models.User._meta.get_field('password')
- <django.db.models.fields.CharField: password>
- >>> pf.max_length = max(pf.max_length, 256)
+The solution is to increase the size of the password field using SQL. You
+should consult your database documentation for the correct commands.