python manage.py runserver 0.0.0.0:8000 时报错:
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
说明之前有数据库未迁移
按照提示执行 python manage.py migrate 即可
若出现 1050, "Table 'django_content_type' already exists"
可以删除数据库里对应应用
delete from django_migrations where app='myapp';
python manage.py makemigrations
python manage.py migrate --fake
标签:py,python,18,manage,unapplied,migrate,报错,migration From: https://www.cnblogs.com/joion/p/17929999.html