diff --git a/Makefile b/Makefile index 217358e..29387bd 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,5 @@ install: $(MAKE); rm -rf /srv/http/build/; cp -rT ./build /srv/http/build/; + cp -rT ./build/scripts/ /srv/http/mgoal/scripts/; + cp -rT ./build/styles/ /srv/http/mgoal/styles/; diff --git a/src/templates/search.html b/src/templates/search.html index 55e8e73..7bb135f 100644 --- a/src/templates/search.html +++ b/src/templates/search.html @@ -29,15 +29,15 @@ {% block styles %} {{super()}} - - + + {% endblock %} {% block scripts %} {{super()}} - - + + {% endblock %} diff --git a/src/website.py b/src/website.py index 566567a..3d09113 100755 --- a/src/website.py +++ b/src/website.py @@ -128,19 +128,19 @@ def ClassSearch(configfile=None): "openlib" : openlib }) - @blueprint.route("/scripts/") - def send_script(filename): - return send_from_directory(app.config["scripts"], filename) + #@blueprint.route("/scripts/") + #def send_script(filename): + #return send_from_directory(app.config["scripts"], filename) - @blueprint.route("/styles/") - def send_style(filename): - return send_from_directory(app.config["styles"], filename) + #@blueprint.route("/styles/") + #def send_style(filename): + #return send_from_directory(app.config["styles"], filename) app = Flask(__name__) app.register_blueprint(blueprint, url_prefix="/search") Bootstrap(app) - app.config["scripts"] = "./scripts" - app.config["styles"] = "./styles" + #app.config["scripts"] = "./scripts" + #app.config["styles"] = "./styles" return app app = ClassSearch("./appconfig")