Advertisement
miletskiy

И снова здравствуйте!

Aug 31st, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.35 KB | None | 0 0
  1. (studentsdb)Inmar:studentsdb miletskiy$ python manage.py migrate
  2. Operations to perform:
  3.   Synchronize unmigrated apps: staticfiles, messages
  4.   Apply all migrations: admin, students, contenttypes, auth, sessions
  5. Synchronizing apps without migrations:
  6.   Creating tables...
  7.     Running deferred SQL...
  8.   Installing custom SQL...
  9. Running migrations:
  10.   Rendering model states... DONE
  11.   Applying contenttypes.0001_initial... OK
  12.   Applying auth.0001_initial... OK
  13.   Applying admin.0001_initial... OK
  14.   Applying contenttypes.0002_remove_content_type_name... OK
  15.   Applying auth.0002_alter_permission_name_max_length... OK
  16.   Applying auth.0003_alter_user_email_max_length... OK
  17.   Applying auth.0004_alter_user_username_opts... OK
  18.   Applying auth.0005_alter_user_last_login_null... OK
  19.   Applying auth.0006_require_contenttypes_0002... OK
  20.   Applying sessions.0001_initial... OK
  21.   Applying students.0001_initial... OK
  22.   Applying students.0002_auto_20150816_2050... OK
  23.   Applying students.0003_remove_group_last_name... OK
  24.   Applying students.0004_auto_20150816_2150...Traceback (most recent call last):
  25.   File "manage.py", line 10, in <module>
  26.     execute_from_command_line(sys.argv)
  27.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
  28.     utility.execute()
  29.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
  30.     self.fetch_command(subcommand).run_from_argv(self.argv)
  31.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv
  32.     self.execute(*args, **cmd_options)
  33.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/base.py", line 444, in execute
  34.     output = self.handle(*args, **options)
  35.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 221, in handle
  36.     executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
  37.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/executor.py", line 110, in migrate
  38.     self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
  39.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/executor.py", line 148, in apply_migration
  40.     state = migration.apply(state, schema_editor)
  41.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/migration.py", line 115, in apply
  42.     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  43.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 201, in database_forwards
  44.     schema_editor.alter_field(from_model, from_field, to_field)
  45.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 484, in alter_field
  46.     old_db_params, new_db_params, strict)
  47.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 567, in _alter_field
  48.     new_default = self.effective_default(new_field)
  49.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 211, in effective_default
  50.     default = field.get_db_prep_save(default, self.connection)
  51.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/related.py", line 1956, in get_db_prep_save
  52.     return self.related_field.get_db_prep_save(value, connection=connection)
  53.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 710, in get_db_prep_save
  54.     prepared=False)
  55.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 977, in get_db_prep_value
  56.     value = self.get_prep_value(value)
  57.   File "/data/work/buildouts/python/studentsdb/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 985, in get_prep_value
  58.     return int(value)
  59. UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-2: invalid decimal Unicode string
  60. (studentsdb)Inmar:studentsdb miletskiy$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement