Re: Question about urls.py

2008-04-22 Thread Alex Morega
On Apr 22, 2008, at 16:34 , jmDesktop wrote: > But what I don't understand is the comment on GET. I thought that was > what I was doing. Or am I doing the same thing only wrong? Are you > saying that I should use a querystring in the url like myurl/? > email=theemail&anothervar=something... i

Re: Question about urls.py

2008-04-22 Thread jmDesktop
I ended up with this (from both of you, thanks): urls.py: (r'^contact/thanks/(?P.*)/$','mysite.books.views.thanks'), and in my views.py: def thanks(request, sender): return render_to_response('books/thanks.html',{'user': sender}) thanks.html: {% extends 'base.html' %} {% block title

Re: Question about urls.py

2008-04-21 Thread Kenneth Gonsalves
On 22-Apr-08, at 4:00 AM, jmDesktop wrote: > (r'^contact/thanks/(.)/$','mysite.books.views.thanks' (r'^contact/thanks/(?P.)/$','mysite.books.views.thanks'), will direct to the thanks function which you call as: def thanks(request,sender) and this thanks function loads the thanks template with

Re: Question about urls.py

2008-04-21 Thread Alex Morega
On Apr 22, 2008, at 01:30 , jmDesktop wrote: > > What I have in my urls.py file is: > > (r'^contact/thanks/(.)/$','mysite.books.views.thanks'), try this: (r'^contact/thanks/(?P.*)/$','mysite.books.views.thanks'), The idea is to capture the sender part of the URL and pass it on as the "sende