google-code-export / django-pyodbc

Automatically exported from code.google.com/p/django-pyodbc
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Connect to sql server 2000 is failed #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. manage.py syncdb

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "C:\Django-1.1.1\django\bin\test\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", 
line
362, in execute_manager
    utility.execute()
  File "C:\Python26\lib\site-packages\django\core\management\__init__.py", 
line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", 
line 195,
 in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", 
line 221,
 in execute
    self.validate()
  File "C:\Python26\lib\site-packages\django\core\management\base.py", 
line 249,
 in validate
    num_errors = get_validation_errors(s, app)
  File "C:\Python26\lib\site-
packages\django\core\management\validation.py", lin
e 22, in get_validation_errors
    from django.db import models, connection
  File "C:\Python26\lib\site-packages\django\db\__init__.py", line 57, in 
<modul
e>
    'TIME_ZONE': settings.TIME_ZONE,
  File "C:\Python26\lib\site-packages\django\db\backends\mssql\base.py", 
line 99
, in __init__
    super(DatabaseWrapper, self).__init__(autocommit=autocommit, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'autocommit'

What version of the product are you using? On what operating system?
django 1.1.1
django-mssql-pyodbc-r2
python 2.6
windows xp sp3
ms sql 2000

Please provide any additional information below.

setting.py:

DATABASE_ENGINE = 'mssql'            
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'djangodb'             # Or path to database file if using 
sqlite3.
DATABASE_USER = 'test'             # Not used with sqlite3.
DATABASE_PASSWORD = 'test'         # Not used with sqlite3.
DATABASE_HOST = 'testserver'             # Set to empty string for 
localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used 
with sqlite3.
DATABASE_COLLATE = '' # 'Latin1_General_CI_AS', for chinese

Original issue reported on code.google.com by heg...@gmail.com on 21 May 2010 at 8:26

GoogleCodeExporter commented 9 years ago
please use svn checkout the last code, don't download the deprecated files.

Original comment by vcc.ch...@gmail.com on 21 May 2010 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by vcc.ch...@gmail.com on 7 Jun 2010 at 12:47