I'm trying to include an external javascipt file by a static URL like:
<script type="text/javascript" src="{{ url_for('static/js', filename='test.js') }}"></script>
but get following error:
werkzeug.routing.BuildError: ('static/js', {'filename': 'test.js', 'lang': 'en'}, None)
I use python flask framework for back end programming. It works well if i expand the javascript in the html file.