我不确定如何解决此问题。我已经尝试通过互联网寻找解决方案,但是没有运气。
除了 init .py,我已经删除了迁移。我什至删除了db,但仍然收到此错误。我不确定如何解决此问题。有人说版本历史中存在某些冲突,我应该回滚到该问题或其他任何事情,但是我不确定该怎么做。
python manage.py makemigrations --merge
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
output = self.handle(*args, **options)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/commands/makemigrations.py", line 133, in handle
return self.handle_merge(loader, conflicts)
File "/Users/prodromos.kachrimani/Desktop/personalProD/personalprod/lib/python3.6/site-packages/django/core/management/commands/makemigrations.py", line 260, in handle_merge
raise ValueError("Could not find common ancestor of %s" % migration_names)
ValueError: Could not find common ancestor of {'0001_initial', '0001_initial 2'}