How do I use this?
Dagur opened this issue · comments
Hi.
What am I supposed to put under "ENGINE" in Django's settings.py?
Good question. You should put 'sqlserver' in ENGINE
Thanks. I did that though and I got this error:
File "/home/ava-daguram/virtualenv/ENV/local/lib/python2.7/site-packages/django/db/utilxs.py", line 243, in getitem
conn = backend.DatabaseWrapper(db, alias)
AttributeError: 'module' object has no attribute 'DatabaseWrapper'
Is this a virtualenv problem maybe?
What is your version of Django?
Does the following command work in python shell?
import sqlserver
I'm using Django 1.7.1 on Python 2.7.6 and I can import sqlserver.
I'm on a virtualenv, do you think that it makes any difference?
virtualenv shouldn't be a problem, I am using it too.
Try running this:
import sqlserver.base
print sqlserver.__file__
print sqlserver.base.__file__
print sqlserver.base.DatabaseWrapper
You can also try recreating virtualenv and reinstalling everything there.
I noticed that sqlserver.version was 1.5.5 so I did a pip remove and installed django-sqlserver again. Now I have version 1.7 and the error is gone.
I guess that I messed up somehow. Sorry about that and thanks for the help!