Flask on GAE Python 2.7 runtime
HTML Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libs
templates
.gitignore Changed structure to make it simpler Sep 9, 2016
.gitmodules
LICENSE Changed structure to make it simpler Sep 9, 2016
app.yaml Changed structure to make it simpler Sep 9, 2016
appengine_console.py Changed structure to make it simpler Sep 9, 2016
boot.py Changed structure to make it simpler Sep 9, 2016
index.yaml Changed structure to make it simpler Sep 9, 2016
main.py
models.py Changed structure to make it simpler Sep 9, 2016
readme.md
responses.py
settings.py
utils.py Changed structure to make it simpler Sep 9, 2016

readme.md

Motivation

Running apps on appengine is really nice. However, you need a good skeleton to get you going fast. This is a project skeleton which includes some of the things (libs and configuration) that I pick for most projects. You can freely use this.

Components

Libraries

Python

  • Flask
  • Jinja
  • werkzeug

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>

License

MIT license