Commit aa02d174 by Stephen

Init checkin of example project

File added
from flask import Blueprint
routes = Blueprint('routes', __name__)
import sys, os
from flask import Flask, render_template
from flask.ext.login import LoginManager, UserMixin
# from routes import *
#Set Directory Structure based on location
STATIC_DIR = '/path/to/static/dir/on/live/server/'
TEMPLATE_DIR = '/path/to/template/dir/on/live/server/'
if os.getenv("USER",None) == 'YOUR USERNAME':
STATIC_DIR = '/path/to/local/static/dir'
TEMPLATE_DIR = '/path/to/local/temp/dir'
app = Flask(__name__,
app.config['TEMPLATES_AUTO_RELOAD'] = True
def index():
return render_template('square.html')
#Set up routing system
# app.register_blueprint(routes)
if __name__ == '__main__':
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment