Basic blog that runs on Google App Engine using Python.
Registered Users:
- Allowed to create new posts
- Allowed to leave comments
- Like and unlike posts that they didn't create
- Delete their own posts and comments
Visitors:
- Allowed to view posts
First thing is to change the "secret" key on line 23 in the main.py file.
secret = "some long key . ...... .."
- Install Python if necessary.
- Install Google App Engine SDK.
- Clone this repository to your local machine:
- cd into cloned directory
- run: dev_appserver.py app.yaml
- You should be able to access the site @ http://localhost:8080
- Sign Up for a Google App Engine Account
- In the project directory run gcloud app deploy and gcloud datastore create-indexes index.yaml
- Visit Quickstart for Python App Engine Standard Environment for more information.
If you get a 500 status error clicking on a post link or authors link. Login to your google app account and goto Datastore. Make sure that your indexes are created and ready.
If you have no indexes, run gcloud datastore create-indexes index.yaml to create indexes.