You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
hi guys,
I have created 2 apps.
This is the code that I use in both the applications to redirect a
user to the login page.
def enterEmployeeProfile(request):
user = users.get_current_user()
if user:
form = EmployeeProfileForm()
return render_to_response('EmployeeProfileTemplate.html',
{'form': form} )
else:
greeting=users.create_login_url("/")
return render_to_response('loginToGoogle.html',{'greeting':
greeting})
This is the code in my template 'loginToGoogle.html'
<a href="{{greeting}}">Sign in or register</a>
I am a little confused as to why I get a server error for my
domain.when I try to display my domain login page.
regards,
Cherian
Marzia Niccolai
unread,
Jul 28, 2008, 5:36:11 PM7/28/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
Hi Cherian, Here is what I expect is the issue: You have restricted your application's authentication to a certain domain, but you are trying to have a person log in to that domain's account on page served from an appspot.com address.
Currently, if you have restricted authentication of your application to a given domain, log in will only work for pages being served on that domain.
For example, if I restrict log in to foo.com, myu...@foo.com will not be able to log in if the application is being served from bar.appspot.com or bar.com. they will only be able to log in when it is being served on foo.com.