Appengine: getCurrentUser() is None but app.yaml login:admin Allows Access?

Today, while working on Google AppEngine code, I discovered a bug in AppEngine, but it just turned out to be a typo. I spent a good few hours googling before tearing things apart and solving the tricky issue. As such, I am sharing my finds to help others’ save some time and stress. Short version is to check your regular expressions in the app.yaml file when adding security to an entire...
readmore

Appengine Django/GQL – Ensuring Uniqueness of Model Type on Edit – Not Equals Filters

Edit 2009-02-02 - Added note about inequality query complexity. Spoiler – inequalities are 2 queries under the hood. In my further adventures in Google AppEngine land, I wanted to ensure uniqueness of an email field while still allowing the user to change their email address. Since, Google App Engine’s BigTable doesn’t allow you to custom define unique indexes, this poses a...
readmore

line
footer
Copyright © 1997 - 2010 Blaine Garrett All Rights Reserved