Django: Superuser creation skipped due to not running in a TTY
Mar 06, 2021 - by kurinchilamp / / Post Comment
When trying to create a super user from command line, you might come across the message below:
$ python manage.py createsuperuser
Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.
If you are on windows and are trying to execute the above command from git bash, try
$ winpty python manage.py createsuperuser
winpty provides a communication layer for windows console programs from git bash. It runs on windows xp through windows 10.
Continue Reading