Commits

Kelvin Wong  committed 86b42db

Incorrect instructions for changing the database

  • Participants
  • Parent commits 932fb43

Comments (0)

Files changed (1)

 the ScryptPasswordHasher class variables you might end up overflowing the
 field.
 
-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.
-  (InteractiveConsole)
-  >>> from django.contrib.auth import models
-  >>> pf = models.User._meta.get_field('password')
-  >>> pf
-  <django.db.models.fields.CharField: password>
-  >>> pf.max_length
-  128
-  >>> pf.max_length = max(pf.max_length, 256)
-  >>> 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.
 
 Bugs! Help!!
 ============