Ticket #1405: pwd-patch.patch
File pwd-patch.patch, 1018 bytes (added by , 19 years ago) |
---|
-
C:/Python24/Lib/site-packages/django/core/management.py
661 661 "Creates a superuser account." 662 662 from django.core import validators 663 663 from django.contrib.auth.models import User 664 import getpass, pwd 664 665 default_username = '' 666 667 try: 668 import getpass, pwd 669 # Determine the current system user's username, to use as a default. 670 default_username = pwd.getpwuid(os.getuid())[0].replace(' ', '').lower() 671 except ImportError: 672 pass 665 673 666 # Determine the current system user's username, to use as a default.667 default_username = pwd.getpwuid(os.getuid())[0].replace(' ', '').lower()668 669 674 # Determine whether the default username is taken, so we don't display 670 675 # it as an option. 671 676 if default_username: