How to change the local GAE server login in a user account?

My GAE app has an edit page. Only an administrator can log in. It works well on the GAE server. But on the local dev machine, when I go to

http://localhost:9080/editpage 

it says

 Current logged in user test@example.com is not authorized to view this page. 

How can I change test@example.com to my admin account?

I am using python.

+4
source share
2 answers

You can directly go to / _ah / login and change who you are logged in with. (Either log out or change user / administrator status.)

+8
source

You are already logged in as user test @example, clear your browser data and try again.

On the login page, select the "Log in as administrator" checkbox to log in as an administrator.

+2
source

Source: https://habr.com/ru/post/1499530/


All Articles