Google App Engine – How to build a user profile page with webapp2

The idea of building a unique page for each user is very similar to building a page for each post. You can simply use the ID of a user entity. Since I already have an entity for user, I do not need to create another one. Therefore, I only need to create a class. Before… Continue reading Google App Engine – How to build a user profile page with webapp2

Google App Engine Migrating from db to ndb datastore – creating a commenting system with webapp2 (part 2)

This post will cover fetching comments associated with a particular post and rendering the comments using Jinja2 template. The concept is pretty much the same as using the db model. Check out the below code. I first built a key of the post and fetched the post to pass it into params. Then I fetched… Continue reading Google App Engine Migrating from db to ndb datastore – creating a commenting system with webapp2 (part 2)