GAE multiuser blog without JS
Simple multiuser blog is built using Google App Engine
Sample here: https://river-wave-150720.appspot.com/blog
Only registered users may add comments and "like" posts.
Download and Install the GAE SDK for python here: https://cloud.google.com/appengine/docs/standard/python/download Clone the source code to your local directory:
git clone [email protected]:weehaa/blog.git
cd to directory where you have cloned the project and run the app server: dev_appserver.py
.
This app is based on MVC (model - view - controller) model.
are stored at /models folder, basicaly contain a GAE entity DB classes:
user.py
- user GAE entity class
blog.py
- blog post GAE entity class, a descendor of a user entity
comment.py
- comment GAE entity class, a descendor of a blog entity
likes.py
- "likes" GAE entity class, a descendor of a blog entity
account_control.py
- handles user signup, login and logout
blog_control.py
- contains front page and newpost render handlers
post_control.py
- contains post page and likes render handler
comment_control.py
- contains comment render handlers
are the jinja templates:
base.html
- headers and top menu
front.html
- front page of the blog
newpost.html
- form to add new or edit existing post (TODO: rename to formpost.html)
permalink.html
- single post page where user can "like" or left comment to the post. The author can edit or delete his post here.
post.html
- single post template to render it on any page
comment.html
- single new/existing comment template for render it inside comments.html
comments.html
- "Comments" title, comment form with Add/Edit/Delete buttons