Skip to content

Instantly share code, notes, and snippets.

@dfcarpenter
Created February 26, 2019 23:05
Show Gist options
  • Save dfcarpenter/779a56d91ba0702a860452254c3eb833 to your computer and use it in GitHub Desktop.
Save dfcarpenter/779a56d91ba0702a860452254c3eb833 to your computer and use it in GitHub Desktop.
Wagtail Migrations
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailredirects', '0006_redirect_increase_max_length'),
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
('wagtailforms', '0003_capitalizeverbose'),
('taggit', '0002_auto_20150616_2121'),
('wagtailimages', '0019_delete_filter'),
]
The dependencies are i'm assuming referencing the old way wagtai modules were named.
C:\Workspace\global_portal>python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 19, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\base.py", line 353, in execute
output = self.handle(*args, **options)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\core\management\commands\migrate.py", line 82, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\loader.py", line 49, in __init__
self.build_graph()
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\loader.py", line 273, in build_graph
raise exc
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\loader.py", line 247, in build_graph
self.graph.validate_consistency()
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\graph.py", line 243, in validate_consistency
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\graph.py", line 243, in <listcomp>
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "C:\Users\uschan04\Continuum\anaconda3\lib\site-packages\django\db\migrations\graph.py", line 96, in raise_error
raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration core.0021_aboutpage dependencies reference nonexistent parent node ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment