diff -urN django_src/django/core/management.py django_src_patch/django/core/management.py
|
old
|
new
|
|
| 342 | 342 | |
| 343 | 343 | def startproject(project_name, directory): |
| 344 | 344 | "Creates a Django project for the given project_name in the given directory." |
| 345 | | from whrandom import choice |
| | 345 | from random import choice |
| 346 | 346 | _start_helper('project', project_name, directory) |
| 347 | 347 | # Populate TEMPLATE_DIRS for the admin templates, based on where Django is |
| 348 | 348 | # installed. |
diff -urN django_src/django/models/auth.py django_src_patch/django/models/auth.py
|
old
|
new
|
|
| 172 | 172 | "Generates a random password with the given length and given allowed_chars" |
| 173 | 173 | # Note that default value of allowed_chars does not have "I" or letters |
| 174 | 174 | # that look like it -- just to avoid confusion. |
| 175 | | from whrandom import choice |
| | 175 | from random import choice |
| 176 | 176 | return ''.join([choice(allowed_chars) for i in range(length)]) |
| 177 | 177 | |
| 178 | 178 | class Session(meta.Model): |