Hello,
On Wednesday, September 19, 2012 7:45:00 PM UTC+2, Alexis Roda wrote: > > Al 19/09/12 10:42, En/na airween ha escrit: > > > File "/usr/lib/python2.6/socket.py", line 547, in create_connection > > for res in getaddrinfo(host, port, 0, SOCK_STREAM): > > error: Int or String expected > > >>> > > > > > > What should I do, what is the problem? > > According to the last line it seems that 'host' or 'port' have the wrong > type. Since 'host' must be an string or None the problem seems to be > related with 'port'. > > Printing httphost and httpport's type and value before creating the > connection may give you some clue. > > > well, you're right :), I printed out the values of those variables, but not types. But now I see, the type of httpport is 'long' instead of 'int' (it cames from a Django model). Typecast resolves this problem, thanks :) a. > HTH > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/z0DoEANiGxoJ. 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.