Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. Operations to perform:
  2. Apply all migrations: admin, contenttypes, sitio, auth, sessions
  3. Running migrations:
  4. Applying sitio.0001_initial... OK
  5. Applying sitio.0002_auto_20141127_0120...Traceback (most recent call last):
  6. File "manage.py", line 10, in <module>
  7. execute_from_command_line(sys.argv)
  8. 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
  9. utility.execute()
  10. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/__init__.py", line 377, in execute
  11. self.fetch_command(subcommand).run_from_argv(self.argv)
  12. 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
  13. self.execute(*args, **options.__dict__)
  14. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 338, in execute
  15. output = self.handle(*args, **options)
  16. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 533, in handle
  17. return self.handle_noargs(**options)
  18. 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
  19. call_command("migrate", **options)
  20. 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
  21. return klass.execute(*args, **defaults)
  22. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/management/base.py", line 338, in execute
  23. output = self.handle(*args, **options)
  24. 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
  25. executor.migrate(targets, plan, fake=options.get("fake", False))
  26. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/executor.py", line 63, in migrate
  27. self.apply_migration(migration, fake=fake)
  28. 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
  29. migration.apply(project_state, schema_editor)
  30. File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/db/migrations/migration.py", line 107, in apply
  31. operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
  32. 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
  33. schema_editor.alter_field(from_model, from_field, to_field)
  34. 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
  35. new_field,
  36. 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