Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Operations to perform:
- Apply all migrations: admin, contenttypes, sitio, auth, sessions
- Running migrations:
- Applying sitio.0001_initial... OK
- Applying sitio.0002_auto_20141127_0120...Traceback (most recent call last):
- File "manage.py", line 10, in <module>
- execute_from_command_line(sys.argv)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/__init__.py", line 385, in execute_from_command_line
- utility.execute()
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/__init__.py", line 377, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 288, in run_from_argv
- self.execute(*args, **options.__dict__)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 338, in execute
- output = self.handle(*args, **options)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 533, in handle
- return self.handle_noargs(**options)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/commands/syncdb.py", line 27, in handle_noargs
- call_command("migrate", **options)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/__init__.py", line 115, in call_command
- return klass.execute(*args, **defaults)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 338, in execute
- output = self.handle(*args, **options)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/commands/migrate.py", line 160, in handle
- executor.migrate(targets, plan, fake=options.get("fake", False))
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/executor.py", line 63, in migrate
- self.apply_migration(migration, fake=fake)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/executor.py", line 97, in apply_migration
- migration.apply(project_state, schema_editor)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/migration.py", line 107, in apply
- operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/operations/fields.py", line 139, in database_forwards
- schema_editor.alter_field(from_model, from_field, to_field)
- File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/backends/schema.py", line 470, in alter_field
- new_field,
- ValueError: Cannot alter field sitio.Presupuesto.producto into sitio.Presupuesto.producto - they are not compatible types (you cannot alter to or from M2M fields, or add or remove through= on M2M fields)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement