python manage py syncdb Creating tables Installing custom SQL Installi

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
>python manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
c:\www\orion>python manage.py createsuperuser
Username (leave blank to use 'admin'):
Email address:
Password:
Password (again):
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
399, in execute_from_command_line
utility.execute()
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\Python27\lib\site-packages\django\core\management\base.py", line 242,
in run_from_argv
self.execute(*args, **options.__dict__)
File "c:\Python27\lib\site-packages\django\core\management\base.py", line 285,
in execute
output = self.handle(*args, **options)
File "c:\Python27\lib\site-packages\django\contrib\auth\management\commands\cr
eatesuperuser.py", line 141, in handle
self.UserModel._default_manager.db_manager(database).create_superuser(**user
_data)
File "c:\Python27\lib\site-packages\django\contrib\auth\models.py", line 195,
in create_superuser
**extra_fields)
File "c:\Python27\lib\site-packages\django\contrib\auth\models.py", line 186,
in _create_user
user.save(using=self._db)
File "c:\Python27\lib\site-packages\django\db\models\base.py", line 545, in sa
ve
force_update=force_update, update_fields=update_fields)
File "c:\Python27\lib\site-packages\django\db\models\base.py", line 573, in sa
ve_base
updated = self._save_table(raw, cls, force_insert, force_update, using, upda
te_fields)
File "c:\Python27\lib\site-packages\django\db\models\base.py", line 654, in _s
ave_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "c:\Python27\lib\site-packages\django\db\models\base.py", line 687, in _d
o_insert
using=using, raw=raw)
File "c:\Python27\lib\site-packages\django\db\models\manager.py", line 232, in
_insert
return insert_query(self.model, objs, fields, **kwargs)
File "c:\Python27\lib\site-packages\django\db\models\query.py", line 1511, in
insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "c:\Python27\lib\site-packages\django\db\models\sql\compiler.py", line 90
3, in execute_sql
cursor.execute(sql, params)
File "c:\Python27\lib\site-packages\django\db\backends\util.py", line 69, in e
xecute
return super(CursorDebugWrapper, self).execute(sql, params)
File "c:\Python27\lib\site-packages\django\db\backends\util.py", line 53, in e
xecute
return self.cursor.execute(sql, params)
File "c:\Python27\lib\site-packages\django\db\utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "c:\Python27\lib\site-packages\django\db\backends\util.py", line 53, in e
xecute
return self.cursor.execute(sql, params)
File "c:\Python27\lib\site-packages\sqlserver_ado\dbapi.py", line 551, in exec
ute
self._execute_command()
File "c:\Python27\lib\site-packages\sqlserver_ado\dbapi.py", line 465, in _exe
cute_command
self._raiseCursorError(klass, _message)
File "c:\Python27\lib\site-packages\sqlserver_ado\dbapi.py", line 403, in _rai
seCursorError
eh(self.connection, self, errorclass, errorvalue)
File "c:\Python27\lib\site-packages\sqlserver_ado\dbapi.py", line 97, in stand
ardErrorHandler
raise errorclass(errorvalue)
django.db.utils.DatabaseError: (-2147352567, '\xce\xf8\xe8\xe1\xea\xe0.', (0, u'
Microsoft OLE DB Provider for SQL Server', u'\u041f\u0440\u0435\u043e\u0431\u044
0\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043
4\u0430\u043d\u043d\u044b\u0445 nvarchar \u0432 \u0442\u0438\u043f \u0434\u0430\
u043d\u043d\u044b\u0445 datetime \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u04
3a \u0432\u044b\u0445\u043e\u0434\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u04
38\u044f \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0434\u0438\u0
430\u043f\u0430\u0437\u043e\u043d\u0430.', None, 0, -2147217913), None)
Command:
SET NOCOUNT ON;DECLARE @sqlserver_ado_return_id table ([id] int);INSERT INTO [au
th_user] ([password], [last_login], [is_superuser], [username], [first_name], [l
ast_name], [email], [is_staff], [is_active], [date_joined]) OUTPUT INSERTED.[id]
INTO @sqlserver_ado_return_id VALUES (?, ?, ?, ?, '', '', '', ?, ?, ?);SELECT *
FROM @sqlserver_ado_return_id
Parameters:
[Name: p0, Dir.: Input, Type: adBSTR, Size: 77, Value: "pbkdf2_sha256$12000$0Dut
Le9CsKAd$57kLx/FlAzG0yvyvcJCtARPvQVQ40i0HMmmGHobI7p8=", Precision: 0, NumericSca
le: 0, Name: p1, Dir.: Input, Type: adBSTR, Size: 23, Value: "2014-04-28 14:50:0
9.050", Precision: 0, NumericScale: 0, Name: p2, Dir.: Input, Type: adBoolean, S
ize: -1, Value: "True", Precision: 0, NumericScale: 0, Name: p3, Dir.: Input, Ty
pe: adBSTR, Size: 5, Value: "admin", Precision: 0, NumericScale: 0, Name: p7, Di
r.: Input, Type: adBoolean, Size: -1, Value: "True", Precision: 0, NumericScale:
0, Name: p8, Dir.: Input, Type: adBoolean, Size: -1, Value: "True", Precision:
0, NumericScale: 0, Name: p9, Dir.: Input, Type: adBSTR, Size: 23, Value: "2014-
04-28 14:50:09.050", Precision: 0, NumericScale: 0]