Skip to content
Snippets Groups Projects
Unverified Commit 8da74b3c authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Fixing static URLs to be inside the blueprint scope as well.

parent e133a715
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,8 @@ import wccg ...@@ -8,7 +8,8 @@ import wccg
bp = Blueprint('openccg', __name__, bp = Blueprint('openccg', __name__,
template_folder='templates') template_folder='templates',
static_folder='static')
def create_response(sentence): def create_response(sentence):
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
{% block head %} {% block head %}
{{ super() }} {{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='openccg.css') }}" /> <link rel="stylesheet" href="{{ url_for('openccg.static', filename='openccg.css') }}" />
<script src="{{ url_for('static', filename='viz.js') }}"></script> <script src="{{ url_for('openccg.static', filename='viz.js') }}"></script>
<script src="{{ url_for('static', filename='lite.render.js') }}"></script> <script src="{{ url_for('openccg.static', filename='lite.render.js') }}"></script>
<script src="{{ url_for('static', filename='openccg.js') }}"></script> <script src="{{ url_for('openccg.static', filename='openccg.js') }}"></script>
<script> <script>
function init() { function init() {
document.getElementById('sentenceform').addEventListener('submit', handle_submit); document.getElementById('sentenceform').addEventListener('submit', handle_submit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment