An NDB model contains two properties: email and password. How to avoid adding to the database two records with the same email? NDB doe
email
password
Maybe you are looking for the webapp2-authentication module, that can handle this for you. It can be imported like this import webapp2_extras.appengine.auth.models. Look here for a complete example.
import webapp2_extras.appengine.auth.models