Skip to content

Instantly share code, notes, and snippets.

@malgorath
Created March 3, 2015 21:50
Show Gist options
  • Save malgorath/438f1048f2908e13b4b5 to your computer and use it in GitHub Desktop.
Save malgorath/438f1048f2908e13b4b5 to your computer and use it in GitHub Desktop.
manage.py migrate blog with widgy error
(testing)SCOTTs-Mac-Pro-2:malgorath1 scott$ ./manage.py migrate blog
/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/widgy/utils.py:152: RemovedInDjango18Warning: `SelectRelatedManager.get_query_set` method should be renamed `get_queryset`.
class SelectRelatedManager(models.Manager):
/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/scss/__init__.py:86: RuntimeWarning: Scanning acceleration disabled (_speedups not found)!
RuntimeWarning
Operations to perform:
Apply all migrations: blog
Running migrations:
Applying blog.0001_initial.../Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/filer/fields/multistorage_file.py:106: SyntaxWarning: MultiStorageFileField can handle only File objects;<function generate_filename_multistorage at 0x1017195f0> passed
"%s passed" % upload_to, SyntaxWarning)
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 161, in handle
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/db/migrations/executor.py", line 68, in migrate
self.apply_migration(migration, fake=fake)
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/db/migrations/executor.py", line 96, in apply_migration
if self.detect_soft_applied(migration):
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/db/migrations/executor.py", line 140, in detect_soft_applied
apps = project_state.render()
File "/Users/scott/.virtualenvs/testing/lib/python2.7/site-packages/django/db/migrations/state.py", line 75, in render
"for more" % new_unrendered_models
django.db.migrations.state.InvalidBasesError: Cannot resolve bases for [<ModelState: 'widgy.ContentType'>]
This can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)
in an app with no migrations; see https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment