get Django url content with urllib2
Hello everyone.
I try:
content = urllib2.urlopen('http://localhost:8080/').read()
from inside some Django view(function)
and http://localhost:8080/ is same Django server.
This command do not give me any answer but hang on.
But if url is foreign it is working.
Is there some cycle problem? Is it possible to
get some page from inside Django using foreign
tools(curl, urllib)?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home