Django

Code

Changeset 262

Show
Ignore:
Timestamp:
07/20/05 21:20:40 (3 years ago)
Author:
adrian
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management.py

    r261 r262  
    343343def startproject(project_name, directory): 
    344344    "Creates a Django project for the given project_name in the given directory." 
    345     from whrandom import choice 
     345    from random import choice 
    346346    _start_helper('project', project_name, directory) 
    347347    # Populate TEMPLATE_DIRS for the admin templates, based on where Django is 
  • django/trunk/django/models/auth.py

    r234 r262  
    173173        # Note that default value of allowed_chars does not have "I" or letters 
    174174        # that look like it -- just to avoid confusion. 
    175         from whrandom import choice 
     175        from random import choice 
    176176        return ''.join([choice(allowed_chars) for i in range(length)]) 
    177177