Daevaorn
Бекэнд ado_mssql есть, по крайней мере в транке.
Всем привет,
поставил adodbapi 2.1
из транка поставил django
в settings.py
указал
DATABASE_ENGINE = ‘ado_mssql’ # ‘postgresql_psycopg2’, ‘postgresql’, ‘mysql’, ‘sqlite3’ or ‘oracle’.
DATABASE_NAME = ‘mysite’ # Or path to database file if using sqlite3.
DATABASE_USER = ‘sa’ # Not used with sqlite3.
DATABASE_PASSWORD = ‘sa’ # Not used with sqlite3.
C:\mysite>python manage.py validate
0 errors found
C:\mysite>python manage.py syncdb
Traceback (most recent call last):
File “manage.py”, line 11, in <module>
execute_manager(settings)
File “C:\Python25\lib\site-packages\django\core\management\__init__.py”, line
272, in execute_manager
utility.execute()
File “C:\Python25\lib\site-packages\django\core\management\__init__.py”, line
219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 72,
in run_from_argv
self.execute(*args, **options.__dict__)
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 86,
in execute
output = self.handle(*args, **options)
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 168,
in handle
return self.handle_noargs(**options)
File “C:\Python25\lib\site-packages\django\core\management\commands\syncdb.py”
, line 48, in handle_noargs
tables =
File “C:\Python25\lib\site-packages\django\core\management\sql.py”, line 14, i
n table_list
return get_introspection_module().get_table_list(cursor)
File “C:\Python25\lib\site-packages\django\db\backends\ado_mssql\introspection
.py”, line 2, in get_table_list
raise NotImplementedError
NotImplementedError
другие релизы дают
C:\mysite>python manage.py syncdb
Traceback (most recent call last):
File “manage.py”, line 11, in <module>
execute_manager(settings)
File “C:\Python25\lib\site-packages\django\core\management\__init__.py”, line
272, in execute_manager
utility.execute()
File “C:\Python25\lib\site-packages\django\core\management\__init__.py”, line
219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 72,
in run_from_argv
self.execute(*args, **options.__dict__)
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 85,
in execute
self.validate()
File “C:\Python25\lib\site-packages\django\core\management\base.py”, line 112,
in validate
num_errors = get_validation_errors(s, app)
File “C:\Python25\lib\site-packages\django\core\management\validation.py”, lin
e 22, in get_validation_errors
from django.db import models, connection
File “C:\Python25\lib\site-packages\django\db\__init__.py”, line 17, in <modul
e>
backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE),
{}, {}, )
File “c:\Python25\lib\site-packages\django\db\backends\ado_mssql\base.py”, lin
e 78, in <module>
dictfetchone = util.dictfetchone
AttributeError: ‘module’ object has no attribute ‘dictfetchone’
как решить проблему? теже модели работают с mysql