Skip to content

Commit

Permalink
Flask app
Browse files Browse the repository at this point in the history
  • Loading branch information
sapratap committed Jul 10, 2016
1 parent 3a83dde commit e2445f4
Show file tree
Hide file tree
Showing 79 changed files with 198 additions and 102 deletions.
16 changes: 16 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from flask import Flask, render_template

app = Flask(__name__)
# app.config.from_object('config')



@app.errorhandler(404)
def not_found(error):
return "TODO: 404 page", 404


from app.views import mod_data as viewModule
from app.models import mod_data as dataModule
app.register_blueprint(viewModule)
app.register_blueprint(dataModule)
13 changes: 13 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from flask import Blueprint, render_template,request
from flask_cache import Cache

from app import app

mod_data = Blueprint('data', __name__)
cache = Cache(app,config={'CACHE_TYPE': 'simple'})


@mod_data.route("/")
def visualize():
return render_template('leaftlet.html')

Loading

0 comments on commit e2445f4

Please sign in to comment.