Hi all, I have some code similar to the one below that runs slightly differently if I run it outside Django and within Django. The difference is that within Django it takes much longer to raise the pyodbc.Error (several minutes) than outside Django (a few seconds). I am new to Django (and Python) and I wonder why this may be happening.
Any hints will be appreciated. thanks, Luis import pyodbc def connect(): try: cnxn = pyodbc.connect('DRIVER={SQL Server NATIVE Client 11.0};SERVER=%s;UID=uid;PWD=pwd' % '127.0.0.1', timeout=5) except pyodbc.Error: print "could not connect" return None connect() -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.