I am working on an application with multiple modules and I want to introduce namespacing in order to separate access to the datastore for each module. I added the following line to the top of my methods that accessed the datastore (and are passed in a context.Context value) but my datastore queries ceased to find any entities. Other methods on the datastore work file, it is just the queries that are failing.
c, _ = appengine.Namespace(c, DBNamespace)
Is this a bug, or is there something that I am missing?