Django Makemigrations not working in version 1.10 after adding new table
<p>I added some table models in <code>models.py</code> for the first time running the app and then ran <code>python manage.py makemigrations</code> followed by <code>python manage.py migrate</code>. This works well but after adding two more tables it doesn't work again. </p>

<p>It created <em>migrations</em> for the changes made but when I run <code>python manage.py migrate</code> nothing happens. My new tables are not added to the database.</p>

<p>Things I have done:</p>

<ol>
<li>Deleted all files in <em>migrations</em> folder and then run <code>python manage.py makemigrations</code>followed by <code>python manage.py migrate</code> but the new tables are not still not getting added to the database even though the new table models show in the migration that was created i.e <strong>0001_initial.py</strong>.</li>
<li>Deleted the database followed by the steps in 1 above but it still didn't solve my problem. Only the first set of tables get created.</li>
<li>Tried <code>python manage.py makemigrations app_name</code> but it still didn't help.</li>
</ol>

<p>I have run into this problem before and found that running <code>manage.py</code> for specific tables in this fashion worked:</p>

<pre><code>python manage.py schemamigration mytablename --auto
python manage.py migrate
</code></pre>

<p>Also make sure that your new table is listed under <code>INSTALLED_APPS</code> in your <code>settings.py</code>.</p>

python django python-2.7