#5414: urlopen from within Django with url to same server fails
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: django-admin.py runserver
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
---------------------------------+------------------------------------------
As the title says, urllib{2}.urlopen(URL) hangs if it is run from within a
Django app and URL is a view on the same Django server. Other URLs works
as intended. This has only been tested on Windows XP Pro with the built-in
web server, using python 2.5 and Django SVN.
Example:
The following URL has a corresponding pay() function, which uses a class
that loads a dynamically built XML:
!http://localhost:8000/billing/pay/
The XML is built by a different view:
!http://localhost:8000/billing/XML2/
Within pay() the XML URL is opened using urllib2.urlopen(URL), where
execution hangs.
--
Ticket URL: <http://code.djangoproject.com/ticket/5414>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---