-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sapratap
committed
Jul 10, 2016
1 parent
3a83dde
commit e2445f4
Showing
79 changed files
with
198 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
|
Oops, something went wrong.