connecting to mssql database

65 views
Skip to first unread message

sum abiut

unread,
Aug 17, 2016, 8:16:06 AM8/17/16
to django...@googlegroups.com

Hi,
i am having a very hard time figuring out how to connect to a mssql database. i've try following this guide but nothing seems to be working. please help



cheers,

Daniel França

unread,
Aug 17, 2016, 8:18:38 AM8/17/16
to django...@googlegroups.com
What errors are you getting?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPCf-y5M37%2B9JRspvMEtUUOZVOp1SaUSuToGs0VdH%2B_DydPC8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

sum abiut

unread,
Aug 17, 2016, 5:45:33 PM8/17/16
to django...@googlegroups.com
I am getting the error mes

django.db.utils.Error: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)')sage




On Wed, Aug 17, 2016 at 11:17 PM, Daniel França <daniel...@gmail.com> wrote:
What errors are you getting?

On Wed, 17 Aug 2016 at 14:15 sum abiut <sua...@gmail.com> wrote:

Hi,
i am having a very hard time figuring out how to connect to a mssql database. i've try following this guide but nothing seems to be working. please help



cheers,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.



-

sum abiut

unread,
Aug 17, 2016, 6:18:39 PM8/17/16
to django...@googlegroups.com
now i have made changes to settings file

DATABASES = {
    'default': {
        'ENGINE': 'django_pyodbc',
        'NAME': xxx',
        'USER': 'xx',
        'PASSWORD': 'xx',
        'HOST': 'xxx',
        'PORT': '1433',

        'OPTIONS': {
            'host_is_server': True,
        }
    }
}



and i am getting the error :
File "/var/www/mssqlconnect/local/lib/python2.7/site-packages/django_pyodbc/base.py", line 96, in <module>
    raise ImproperlyConfigured("Django %d.%d is not supported." % DjangoVersion[:2])
django.core.exceptions.ImproperlyConfigured: Django 1.10 is not supported.


is this something has to do with version issue?

cheers

sum abiut

unread,
Aug 18, 2016, 6:14:59 AM8/18/16
to django...@googlegroups.com
got it fixed, it was the version issue. i down grade from django 1.10 to 1.9.9 and it fixed. 

cheers
Reply all
Reply to author
Forward
0 new messages