Google App Engine Gets User Defined Username

Is there a way to get the key name that you installed using:

Model( key_name = ... ... ) 

I tried using the key () method, but returns the one that Google does.

+6
google-app-engine key
source share
2 answers

This is the key (). name ()

Documents in the Key Class

+10
source share

I was looking for a solution in my NDB data warehouse case. Check out the NDB Key link .

With an NDB model, you should use model.key.string_id ()

0
source share

All Articles