From 9e65710836bee72e7a3f4ee05d5e1e8a08038a57 Mon Sep 17 00:00:00 2001 From: wes Date: Mon, 20 Jun 2016 18:55:13 -0400 Subject: [PATCH] update root url --- .gitignore | 3 +-- __init__.py | 0 src/templates/search.html | 20 ++++++++++---------- src/website.py | 7 +++---- 4 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 __init__.py diff --git a/.gitignore b/.gitignore index 69243cd..9139a88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ -*.swp +*.sw* *.pyc -*.swo .vim-session *~ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/templates/search.html b/src/templates/search.html index 529edcb..4bfb709 100644 --- a/src/templates/search.html +++ b/src/templates/search.html @@ -28,20 +28,20 @@ {% block styles %} {{super()}} - - + + {% endblock %} - +{{ url_for('send_script', filename='') }} {% block scripts %} {{super()}} - - - - - - - + + + + + + + {% endblock %} diff --git a/src/website.py b/src/website.py index 1fc9374..35bbef3 100755 --- a/src/website.py +++ b/src/website.py @@ -1,6 +1,5 @@ #! /usr/bin/python2 from functools import partial -from couchdb import ResourceConflict from flask import Flask, render_template, flash, request, send_from_directory from flask_bootstrap import Bootstrap @@ -61,8 +60,8 @@ def ClassSearch(configfile=None): # https://github.com/mbr/flask-appconfig Bootstrap(app) - app.config["scripts"] = "/home/wes/MGOAL/scripts" - app.config["styles"] = "/home/wes/MGOAL/styles" + app.config["scripts"] = "./scripts" + app.config["styles"] = "./styles" @app.route('/favicon.ico') def favicon(): @@ -145,4 +144,4 @@ def ClassSearch(configfile=None): return app if __name__ == "__main__": - ClassSearch().run(port=8001, debug=True) + ClassSearch("./appconfig").run(port=8001, debug=True)