<p>正在尝试为我的数据库创建超级用户:</p>
<pre><code>manage.py createsuperuser
</code></pre>
<p>收到悲伤的递归消息:</p>
<p><em>由于未在TTY中运行,已跳过超级用户创建。您可以在项目中运行<code>manage.py createsuperuser</code>来手动创建一个。</em></p>
<p>当真的Django?真的吗?</p>
<p>我找到的唯一信息是上面列出的,但它不起作用:
<a href="https://stackoverflow.com/questions/26980003/unable-to-create-superuser-in-django-due-to-not-working-in-tty">Unable to create superuser in django due to not working in TTY</a></p>
<p>这里的另一个,基本上是一样的:
<a href="https://stackoverflow.com/questions/14059573/cant-create-super-user-django">Can't Create Super User Django</a></p>