﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7431	change import pwd library for import os in createsuperuser	Kenneth Belitzky		"the file createsuperuser.py (rev 7590) is using the pwd method to detect default user. while this is good alternative on Unix based systems, this library (pwd) is not included on the windows version of python. [[BR]]
my suggestion is to change this:

{{{
try:
  import pwd
except ImportError:
  default_username = ''
else:
  default_username = pwd.getpwuid(os.getuid())[0].replace(' ', '').lower()
}}}
[[BR]]
with
[[BR]]
{{{
  default_username = os.path.expanduser(""~"").replace(' ', '').lower().split(os.sep)[-1]
}}}
[[BR]]
or something similar, in order to get a windows compartible method too.
"		closed	contrib.auth	dev		fixed			Accepted	1	0	0	0	0	0
