summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/management.py2
-rw-r--r--django/models/auth.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management.py b/django/core/management.py
index c15ecb817b..aeac118108 100644
--- a/django/core/management.py
+++ b/django/core/management.py
@@ -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.
diff --git a/django/models/auth.py b/django/models/auth.py
index ef0ffdf749..4d3f6394a1 100644
--- a/django/models/auth.py
+++ b/django/models/auth.py
@@ -172,7 +172,7 @@ class User(meta.Model):
"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):