Re: REST failed urlopen

2009-11-03 Thread Jose Blanca
On Nov 3, 5:53 pm, Tom Evans wrote: > How are you running django? > > Are you going to a view at /client/, which then tries to access a different > view using urllib? IE, from the view at /client/, are you trying to access > the same server as you are running on? > > Remember that the django 'run

Re: REST failed urlopen

2009-11-03 Thread Tom Evans
How are you running django? Are you going to a view at /client/, which then tries to access a different view using urllib? IE, from the view at /client/, are you trying to access the same server as you are running on? Remember that the django 'runserver' web server is single threaded, single proc

Re: REST failed urlopen

2009-11-03 Thread Jose Blanca
I've done some more tests. I have two views, one that serves the data and other that consumes it. If I point my browser to http://localhost:8000/server/ I get a response. If I point my browser to http://localhost:8000/client/ I do not get a response and django isn't able to provide one even if I o

REST failed urlopen

2009-11-03 Thread Jose Blanca
Hi: I'm trying to implement my first RESTful application. I've divided the code into two applications, the server and the client. For the time being the server (localhost:8000/server/) has to return a list of resources (['resource1', 'resource2']) usring json. That's working, if I go to the url I