Skip to content
Blog with a Python and Google App Engine backend
Python HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Personal Blog in Google Cloud

What is it?

A personal blog for posting content with commenting and score system. Built using Python for the backend, and runs on Google App Engine. The Python server uses jinja2 for HTML templating and stores all site data in Google Cloud Datastore.


  1. Download and install Python 2.7
  2. Download and install Google App Engine SDK for Python
  3. Sign Up for a Google App Engine Account
  4. Create a new project in Google’s Developer Console using a unique name
  5. Follow the App Engine Quickstart to get an app up and running
  6. Clone this repository into Google's repository using these instructions


Modify the site as needed. front.html in the templates directory is inherited/extended by all other HTML templates. Edit this file to change the page header and navigation.

Styling can be changed using CSS in file style.css in the css folder.

Be sure to change the value of SECRET, which is used for hashing. This can be found on line 16 of

SECRET = "LVFuBg9EM8Bq3cd992Tb5g01Uh30GCV2"

Running Locally

To run the site on your local machine, run this command from a Terminal within the application's directory.

$ .

The site will then be avialible at http://localhost:8080/. The local Google Datastore can be viewed and edited using this address http://localhost:8000/. All valid paths can be used and edited at the bottom of

app = webapp2.WSGIApplication([("/", BlogFront),
                               ("/blog/?", BlogFront),
                               ("/blog/([0-9]+)", PostPage),
                               ("/blog/newpost", NewPost),
                               ("/blog/signup", Signup),
                               ("/blog/login", Login),
                               ("/blog/logout", Logout)],

Deploying to Cloud

Modified app files can be deployed to Google Cloud using:

$ gcloud app deploy


  • Add user roles so only some users can post articles
  • Add like/dislike tracking to block multiple likes/dislikes
  • Add user administration functionality



You can’t perform that action at this time.