This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JohanPretorius
Recipients JohanPretorius
Date 2015-04-22.08:17:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429690670.7.0.624735318839.issue24023@psf.upfronthosting.co.za>
In-reply-to
Content
When running the $python manage.py createsuperuser command the following is returned:
C:\Users\johanP\mysite>python manage.py cre
Username (leave blank to use 'johanp'):
Email address: ja****rius@gmail.com
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
nit__.py", line 338, in execute_from_command_line
    utility.execute()
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
nit__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
e.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
ment\commands\createsuperuser.py", line 50, in execute
    return super(Command, self).execute(*args, **options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
e.py", line 441, in execute
    output = self.handle(*args, **options)
  File "C:\Program Files\Python 3.5\lib\site-packages\djan
ment\commands\createsuperuser.py", line 124, in handle
    password = getpass.getpass()
  File "C:\Program Files\Python 3.5\lib\getpass.py", line
    msvcrt.putwch(c)
AttributeError: module 'msvcrt' has no attribute 'putwch'

The command picks up my AD credentials and doesn't request a password. I can create a super user in python using the following link:https://docs.djangoproject.com/en/1.8/topics/auth/default/
But the admin site won't start using this method.
I'm running Python 3.5, Django 1.8 on Windows 7 Professional.
History
Date User Action Args
2015-04-22 08:17:50JohanPretoriussetrecipients: + JohanPretorius
2015-04-22 08:17:50JohanPretoriussetmessageid: <1429690670.7.0.624735318839.issue24023@psf.upfronthosting.co.za>
2015-04-22 08:17:50JohanPretoriuslinkissue24023 messages
2015-04-22 08:17:49JohanPretoriuscreate