python - google app engine: go to login page by javascript? -


Do anyone know how to use Javascript to use user accounts in Google Accounts?

I know " users.create_login_url (self.request.path) " but how is it integrated into "window.location"

Or is it optional ??

You pass the string created by users.create_login_url (self.request.path) as template variable on your template, and then the template variable can be inserted with double curly braces in your javascript (if you are using the bundle Django template):

  window.location = {{Authention_url}}  

Where authentication_url is the template variable that you create in your requestHandler Is.


Comments