'python manage.py createsuperuser' error

75 views
Skip to first unread message

Lansana Camara

unread,
Jan 13, 2016, 2:57:11 AM1/13/16
to Django users
Learning Python and Django for the first time and I'm stuck at this part of the intro tutorial: https://docs.djangoproject.com/en/1.9/intro/tutorial02/#introducing-the-django-admin

The 'python manage.py createsuperuser' command gives me this error: 

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

Looking through the source, namely createsuperuser.py, it catches the NotRunningInTTYException:

except NotRunningInTTYException:
self.stdout.write(
"Superuser creation skipped due to not running in a TTY. "
"You can run `manage.py createsuperuser` in your project "
"to create one manually."
)

Anyone know how I can resolve this error? if it makes any difference, my installation process was a headache... getting 'python manage.py runserver' took me a good day. Maybe I don't have things configured properly... Using Windows.
Reply all
Reply to author
Forward
0 new messages