Closed GoogleCodeExporter closed 8 years ago
the MSSQL server is MSSQL 2005 Express
Original comment by bendo...@gmail.com
on 6 May 2009 at 7:39
SOLVED : used the correct version of django-pyodbc
svn checkout http://django-pyodbc.googlecode.com/svn/branches/django-1.0.x/
django-pyodbc-1.0.x
works fine now.
also just realised i missed the app name in the problem description.
thanks for all your work guys and/or girls.
Original comment by bendo...@gmail.com
on 6 May 2009 at 7:52
Hmm, that helped my issue as well - getting the correct version, however I'm
now afflicted by this bug: http://code.djangoproject.com/ticket/10463
from django.db import models, connection
File "/Library/Python/2.5/site-packages/django/db/__init__.py", line 57, in <module>
'TIME_ZONE': settings.TIME_ZONE,
File "/Users/bla/bin/django-pyodbc/sql_server/pyodbc/base.py", line 87, in __init__
self.client = DatabaseClient()
TypeError: __init__() takes exactly 2 arguments (1 given)
Django 1.0.2
django-pyodbc-1.0.x
When I tried implementing the changes they made in the 'fix' for it I just had
another similar error.
Original comment by malatm...@gmail.com
on 6 May 2009 at 4:00
hmm i see some work has been done towards my issue but maybe only in the trunk
and not the 1.0.x? like mine
looks more like r155 than r157...
Original comment by malatm...@gmail.com
on 6 May 2009 at 4:26
malatmals:
> File "/Users/bla/bin/django-pyodbc/sql_server/pyodbc/base.py", line 87, in
__init__
> self.client = DatabaseClient()
> TypeError: __init__() takes exactly 2 arguments (1 given)
>
> Django 1.0.2
> django-pyodbc-1.0.x
It seems you aren't really using django version 1.0.2 (or for the matter a
checkout
of the 1.0.x SVN branch) because the only place DB backends' DatabaseClient
classes
(and django.db.BaseDatabaseClient) have grown __init__ methods is in Django
trunk
(what will lead to 1.1), or perhaps your Djangfo installation is somehow
corrupted
and is a mix between 1.0.x and trunk.
In resumen:
If you used Django You should use django-pyodbc
trunk trunk
1.0.2 release branches/django-1.0.x
1.0.x branch branches/django-1.0.x
Will close this ticket in two days.
Original comment by cra...@gmail.com
on 10 May 2009 at 11:40
Original comment by cra...@gmail.com
on 15 May 2009 at 12:57
Original issue reported on code.google.com by
bendo...@gmail.com
on 6 May 2009 at 7:36