title: Authentication in Google App Engine: app.yaml vs. python code
body: <p>I am writing a small app that uses the GAE. I have parts of my app that are for administrative use only. I have two options using <code>login: admin</code> option in the app.yaml or <code>google.appengine.api.users.is_current_user_admin()</code> in python code. The basic authentication is sufficient for my case.</p>
  
  <p>Which solution is better?</p>
  
  <p>The advantage of using app.yaml is that the python code is a bit cleaner. Plus it may be the case that app.yaml may be more efficient, since it can be handled in the server. (In worst case it is equal in terms of performance.) The only drawback is that I do not display a custom page, but I don't care to much for that.</p>
  
  <p>I am unsure if my assertions are correct.</p>