Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create superuser in django due to not working in TTY

I go through first django tutorial from djangoproject.com and at the very beginning of part 2, which is creating superuser when I run "python manage.py createsuperuser" I get the following message back:

Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.    

I get the same message when I go on to create superuser after running syncdb.

I am working on Eclipse for Windows 7, and Django 1.7.1 together with Python 2.7.8.

like image 857
PJM Avatar asked Nov 17 '14 19:11

PJM


1 Answers

When using the Git Bash and to correct the above error message try to append winpty
i.e. for example:

$ winpty python manage.py createsuperuser
Username (leave blank to use '...'):
like image 115
Siv Avatar answered Sep 30 '22 08:09

Siv