擅长:python、mysql、java
<p>您必须创建迁移并运行它们。我看到您使用的是Django 1.6.1,因此您必须遵循以下步骤:</p>
<p>打开您的设置.py并检查您已安装的应用程序上是否有“south”(如果没有,请按此操作<a href="https://south.readthedocs.org/en/latest/installation.html#using-pip-or-easy-install" rel="nofollow">guide</a>)</p>
<p>打开终端</p>
<p>转到项目的根目录(其中有一个名为管理.py)在</p>
<p>运行以下命令:</p>
<pre><code>python manage.py syncdb
python manage.py schemamigration nameofyourapp initial
python manage.py migrate nameofyourapp
python manage.py schemamigration nameofyourapp auto
</code></pre>