Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Flask on GAE Python 2.7 runtime

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 gae
Octocat-spinner-32 submodules
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 readme.md
readme.md

Motivation

This is a modification of Blossom's Flask GAE Skeleton . I modify this to run under the Python 2.7 Runtime. Credits to Thomas Schranz, Allan Berger, and Nik Graf for the initial skeleton.

This is a project skeleton which includes some of the things (libs and configuration) that I pick for most projects.

Components

General

here is a list of assembled components

  • flask decorators for (cache_page, login_required)
  • gae specific monkeypatch for werkzeug debugger http://dev.pocoo.org/projects/werkzeug/wiki/UsingDebuggerWithAppEngine
  • a simple user model
  • google appengine specific development/production environment switch
  • google appengine appstats configured
  • google appengine memcache caching backend configured
  • favicon.ico stub to avoid unneeded error logs
  • deck module with 26 char uuid generator
  • deck module with JsonProperty for the datastore
  • lib directory for external dependencies prepended to syspath

Libraries

Python

Dependencies

General

Setup

clone repository

git clone https://github.com/femmerling/Flask-GAE-py27.git <project_name>

change to directory of

cd <project_name>

fetch all the submodules via

git submodule update --init

set your own appengine application id in app.yaml

change the 'secret_key' in settings.py by generating a new one

add replace remote

git remote rm origin
git remote add origin <new_remote like git@github.com:your_name/project_name.git>
git commit -am "initial setup"
git push origin master

Update from Skeleton

Add the remote and merge in all changes and removes the old stuff again.

git remote add skeleton https://github.com/femmerling/Flask-GAE-py27.git
git pull skeleton
git checkout -b skeleton remotes/skeleton/master
git rebase <your_development_branch like master>
git checkout <your_development_branch like master>
git merge --no-ff skeleton
git branch -D skeleton
git remote rm skeleton
git submodule update

Usage

Run Application

Go to path "code" and run

dev_appserver.py .

Run Remote Console

Go to path "code" and run

python appengine_console.py <app-id>
Something went wrong with that request. Please try again.