首页 > 移动平台 > 详细

CommandError: App ‘polls‘ has migrations

时间:2015-04-15 19:45:05      阅读:513      评论:0      收藏:0      [点我收藏+]

执行python manage.py sql polls时出现错误

E:\projects\djangotest\mysite>python manage.py sql polls
CommandError: App ‘polls‘ has migrations. Only the sqlmigrate and sqlflush commands can be used when an app has migrations.

处理:

删除migrations目录或者执行manage.py migrate

参考:http://stackoverflow.com/questions/24215005/django-commanderror-app-polls-has-migrations

CommandError: App ‘polls‘ has migrations

原文:http://my.oschina.net/soarwilldo/blog/402022

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!