I am reading this tutorial: Installing and Configuring Graphite and Statsd on an Ubuntu 12.04 VPS
我正在阅读本教程:在Ubuntu 12.04 VPS上安装和配置Graphite和Statsd
and I am working to automatize everything is possible then there is one step of this tutorial that is giving me crazy:
我正在努力实现一切可能的自动化,然后本教程的一个步骤让我发疯:
Next, we will configure the Graphite database. Go to the Graphite webapp directory and run the database script:
接下来,我们将配置Graphite数据库。转到Graphite webapp目录并运行数据库脚本:
cd /opt/graphite/webapp/graphite/
sudo python manage.py syncdb
As you see, we have to run the manage.py and when I run syncdb ask about a creation of superuser. How can I avoid that? I would like to run these sending all parameters to make an automatic script.
如您所见,我们必须运行manage.py,当我运行syncdb时询问是否创建了超级用户。我怎么能避免这种情况?我想运行这些发送所有参数来制作自动脚本。
Any ideas?
有任何想法吗?
1 个解决方案
#1
7
You can use the --noinput
argument to disable those prompts for the syncdb
command.
您可以使用--noinput参数禁用syncdb命令的提示。
--noinput
--noinput
Use the
--noinput
option to suppress all user prompting, such as “Are you sure?” confirmation messages. This is useful ifdjango-admin.py
is being executed as an unattended, automated script.使用--noinput选项可以禁止所有用户提示,例如“您确定吗?”确认消息。如果django-admin.py作为无人参与的自动脚本执行,这将非常有用。
#1
7
You can use the --noinput
argument to disable those prompts for the syncdb
command.
您可以使用--noinput参数禁用syncdb命令的提示。
--noinput
--noinput
Use the
--noinput
option to suppress all user prompting, such as “Are you sure?” confirmation messages. This is useful ifdjango-admin.py
is being executed as an unattended, automated script.使用--noinput选项可以禁止所有用户提示,例如“您确定吗?”确认消息。如果django-admin.py作为无人参与的自动脚本执行,这将非常有用。