Browse files

Fixed #114 -- Changed uses of deprecated 'whrandom' module to 'random'

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d330be0 commit 8d144dadd8b60a7ce803ebcb235718f06e2d5986 @adrianholovaty adrianholovaty committed Jul 21, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 django/core/
  2. +1 −1 django/models/
@@ -342,7 +342,7 @@ def _start_helper(app_or_project, name, directory, other_name=''):
def startproject(project_name, directory):
"Creates a Django project for the given project_name in the given directory."
- from whrandom import choice
+ from random import choice
_start_helper('project', project_name, directory)
# Populate TEMPLATE_DIRS for the admin templates, based on where Django is
# installed.
@@ -172,7 +172,7 @@ def _module_make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwx
"Generates a random password with the given length and given allowed_chars"
# Note that default value of allowed_chars does not have "I" or letters
# that look like it -- just to avoid confusion.
- from whrandom import choice
+ from random import choice
return ''.join([choice(allowed_chars) for i in range(length)])
class Session(meta.Model):

0 comments on commit 8d144da

Please sign in to comment.