Commit aa02d174 authored by Stephen's avatar Stephen

Init checkin of example project

parents
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__,
static_folder=STATIC_DIR,
template_folder=TEMPLATE_DIR)
app.config['TEMPLATES_AUTO_RELOAD'] = True
@app.route('/')
def index():
return render_template('square.html')
#Set up routing system
# app.register_blueprint(routes)
if __name__ == '__main__':
app.run()
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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