擅长:python、mysql、java
<p>您正在使用的教程状态:</p>
<blockquote>
<p>(If this fails complaining that
south_migrationhistory does not exist,
you forgot to run syncdb <a href="http://south.aeracode.org/docs/installation.html#installation-configure" rel="noreferrer">after you
installed
South</a>.)</p>
</blockquote>
<p>假设你的帖子准确地详细描述了你已经采取的步骤,那么按照这个链接似乎会显示你在设置新应用之前错过了一个步骤。由于您正在学习在新应用程序上设置迁移的教程,因此顺序如下:</p>
<ol>
<li>将<em>south</em>添加到<code>INSTALLED_APPS</code>。</li>
<li>运行<code>syncdb</code>。</li>
<li><em>然后按照教程进行操作。</li>
</ol>
<p>也就是说,在添加新应用程序的模型之前,您应该已经运行了<code>syncdb</code>。从<code>INSTALLED_APPS</code>中删除应用程序的解决方案应该是可行的,但值得注意的是,这实际上只是一个“愚蠢”的解决方案,因为您之前错过了一步。如果在创建应用程序的模型之前运行了<code>syncdb</code>,则不必使用解决方案。</p>