django makemigrations to rename field without user input
<p>I have a model with CharField named <em>oldName</em>. I want to rename the field to <em>newName</em>. </p>

<p>When I run <em>python manage.py makemigrations</em>, I get a confirmation request <strong>"Did you rename model.oldName to model.newName (a CharField)? [y/N]"</strong></p>

<p>However, I want to run the whole thing inside a docker container and there is no provision to provide the user input. Is there a way to force the migration without need for user input?</p>

<p><strong>PS:</strong> I tried <strong>--noinput</strong> option with makemigrations. In this case migrations are not getting applied.</p>

<p>Use </p>

<pre><code>script_or_command &lt; &lt;(yes y)
</code></pre>

<p>But I'm not sure this will work for multiple input prompts.</p>

python django rename makemigrations