Re: Questions about HttpResponseRedirect and reverse

2008-10-05 Thread Steve Holden
Malcolm Tredinnick wrote: > On Fri, 2008-10-03 at 13:29 -0400, Steve Holden wrote: > >> Alexis Bellido wrote: >> >>> Cool, thanks for the confirmation. I'm still devouring all the >>> documentation, a couple of books and practicing a lot on Django :) >>> >>> >> One of the things

Re: Questions about HttpResponseRedirect and reverse

2008-10-05 Thread Alexis Bellido
Cool, now it's completely clear. Thanks a lot Malcolm :) --~--~-~--~~~---~--~~ 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

Re: Questions about HttpResponseRedirect and reverse

2008-10-05 Thread Malcolm Tredinnick
On Sun, 2008-10-05 at 16:03 -0700, Alexis Bellido wrote: > After some more reading and testing I'll try to answer myself, if any > of you could confirm if I'm on the right track please let me know and > please correct me if I'm not using the right terminology as well: > > First, in my URLConf I

Re: Questions about HttpResponseRedirect and reverse

2008-10-05 Thread Alexis Bellido
After some more reading and testing I'll try to answer myself, if any of you could confirm if I'm on the right track please let me know and please correct me if I'm not using the right terminology as well: First, in my URLConf I have a url pattern like: (r'^search/$', 'books.views.search', {},

Re: Questions about HttpResponseRedirect and reverse

2008-10-05 Thread Alexis Bellido
Hey, Malcolm, maybe an example could help. I'm reading the forms documentation at http://docs.djangoproject.com/en/dev//topics/forms/ and I see this code as part of the view function for a contact form: def contact(request): if request.method == 'POST': # If the form has been submitted...

Re: Questions about HttpResponseRedirect and reverse

2008-10-04 Thread Malcolm Tredinnick
On Fri, 2008-10-03 at 13:29 -0400, Steve Holden wrote: > Alexis Bellido wrote: > > Cool, thanks for the confirmation. I'm still devouring all the > > documentation, a couple of books and practicing a lot on Django :) > > > One of the things I find tricksiest about learning new Django code is

Re: Questions about HttpResponseRedirect and reverse

2008-10-03 Thread Donn
On Friday, 03 October 2008 16:53:02 Alexis Bellido wrote: > I'm not sure if I understand Malcolm's suggestion, is he talking about > using named URL patterns as documented here? Yes he is. They are quite tricky little devils and cause me much pain, but that's because I am too impatient and have

Re: Questions about HttpResponseRedirect and reverse

2008-10-03 Thread Steve Holden
Alexis Bellido wrote: > Cool, thanks for the confirmation. I'm still devouring all the > documentation, a couple of books and practicing a lot on Django :) > One of the things I find tricksiest about learning new Django code is that the connections between the URLs and the views can often turn

Re: Questions about HttpResponseRedirect and reverse

2008-10-03 Thread Alexis Bellido
Cool, thanks for the confirmation. I'm still devouring all the documentation, a couple of books and practicing a lot on Django :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Questions about HttpResponseRedirect and reverse

2008-10-03 Thread Alexis Bellido
Hello, I was reading this discussion: http://groups.google.com/group/django-users/browse_thread/thread/d2d9ed6599089301 There Donn asks: "Lastly, on the decoupling thing again, if I end up using (sometime) HttpResposeRedirect(reverse(project.app.view)) does that not tie the view to the app to