[google-appengine] Re: Why this is happening?

2009-03-13 Thread arnie

I have used your suggested code as given below

def signin(request):
return HttpResponseRedirect(overview(request))

def overview(request):
   return render_to_response('step1.html')

but it is still not working
any idea, why?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why this is happening?

2009-03-09 Thread Michael O'Brien

Your signin view should probably redirect to the overview rather than
just writing the template.

So you could use something like:

def overview(request):
   return return_to_response('overview.html')

def signin(request):
   return HttpResponseRedirect(reverse(overview))

cheers
Michael

On Mar 9, 11:41 am, arnie parvez...@rediffmail.com wrote:
 Using django templates I have written a very simple method in views.py
 as below
 def signin(request):
       return return_to_response('overview.html')

 Though I am successfully getting the overview.html page but what is
 problematic here is that the browser address bar now becomes something
 like this [the query string]
 ?first_name=ssslast_name=aaa
 How can I prevent this query string from being generated?
 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---