Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (studentsdb)Inmar:studentsdb miletskiy$ python manage.py migrate
- Operations to perform:
- Synchronize unmigrated apps: staticfiles, messages
- Apply all migrations: admin, students, contenttypes, auth, sessions
- Synchronizing apps without migrations:
- Creating tables...
- Running deferred SQL...
- Installing custom SQL...
- Running migrations:
- Rendering model states... DONE
- Applying contenttypes.0001_initial... OK
- Applying auth.0001_initial... OK
- Applying admin.0001_initial... OK
- Applying contenttypes.0002_remove_content_type_name... OK
- Applying auth.0002_alter_permission_name_max_length... OK
- Applying auth.0003_alter_user_email_max_length... OK
- Applying auth.0004_alter_user_username_opts... OK
- Applying auth.0005_alter_user_last_login_null... OK
- Applying auth.0006_require_contenttypes_0002... OK
- Applying sessions.0001_initial... OK
- Applying students.0001_initial... OK
- Applying students.0002_auto_20150816_2050... OK
- Applying students.0003_remove_group_last_name... OK
- Applying students.0004_auto_20150816_2150...Traceback (most recent call last):
- File "manage.py", line 10, in <module>
- execute_from_command_line(sys.argv)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
- utility.execute()
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv
- self.execute(*args, **cmd_options)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/base.py", line 444, in execute
- output = self.handle(*args, **options)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 221, in handle
- executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/executor.py", line 110, in migrate
- self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/executor.py", line 148, in apply_migration
- state = migration.apply(state, schema_editor)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/migration.py", line 115, in apply
- operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 201, in database_forwards
- schema_editor.alter_field(from_model, from_field, to_field)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 484, in alter_field
- old_db_params, new_db_params, strict)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 567, in _alter_field
- new_default = self.effective_default(new_field)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 211, in effective_default
- default = field.get_db_prep_save(default, self.connection)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/related.py", line 1956, in get_db_prep_save
- return self.related_field.get_db_prep_save(value, connection=connection)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 710, in get_db_prep_save
- prepared=False)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 977, in get_db_prep_value
- value = self.get_prep_value(value)
- File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 985, in get_prep_value
- return int(value)
- UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-2: invalid decimal Unicode string
- (studentsdb)Inmar:studentsdb miletskiy$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement