+1  A: 

You've got the right idea already.

If 2 SR entities were constructed with the same key_name argument, then they will have the same Key path. Writing one will overwrite any old SR entity which had that key_name argument.

You should be able to observe this by querying the datastore for the entity with its unique key:

s = db.get(db.Key.from_path('SR', 't5-2rain'))
David Underhill
ok I just called as you shown and I get the most recent entry for that key name , but I am looking at my development console and I see 3 entries with the same key-name? Why do the old ones still exist? Shouldn't they be overwritten? Basically if i do as follows I will see 2 entries with same key name in my dev consoles = SR(key_name="t5-2rain")s.name = 't5-2rain's.title = 'kaja's.url = 'okedoke'db.put(s)s = SR(key_name="t5-2rain")s.name = 't5-2rain's.title = 'kaja2's.url = 'okedoke2'db.put(s)
Are you seeing this on the dev or production server? I don't see it in either case (whether using the default db type or sqlite db on the dev server). Could you post a screenshot of what you're seeing?
David Underhill
Weird I removed all entries and then entered it twice and it is now overwriting like it should lol
Strange indeed. I'm glad it is working like we'd expect now.
David Underhill