<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I changed the includes to "/static" and "/templates" (without "..").<br>
I am going to use a local webserver to test my webpages and not open
them directly in the browser (<a class="moz-txt-link-freetext" href="file://">file://</a>..)<br>
<br>
Thanks for the hints,<br>
Ben<br>
<br>
<br>
<div class="moz-cite-prefix">Am 23.07.2016 um 15:54 schrieb
linnchord:<br>
</div>
<blockquote
cite="mid:CAJ3SPdxyn1108pRWjm1LcF5ezq5nhUoE1D+ZNNYhFW-opbtYFw@mail.gmail.com"
type="cite">
<div dir="ltr">Run Flask buildin server on local like <a
moz-do-not-send="true" href="http://localhost:8080">http://localhost:8000</a>,
do not open html template directly by <a class="moz-txt-link-freetext" href="file://">file://</a>...<br>
<br>
<div class="gmail_quote">
<div dir="ltr">Nikolaus Neusser <<a moz-do-not-send="true"
href="mailto:nik.gen@gmx.de">nik.gen@gmx.de</a>>于2016年7月23日周六
下午7:15写道:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
everyone,<br>
<br>
i am having troubles in organizing my files in sub-folders
and adding them to my html files.<br>
I am serving 4 static html files with custom .css and .js
files.<br>
What is important to me, is that i can open the html files
locally with my webbrowser without the server as well.<br>
<br>
folder structure:<br>
static\css -> custom.css<br>
static\js -> custom.js, jquery.js, ..<br>
templates -> 4x html files<br>
<br>
<br>
index.html:<br>
If i deliver the file via the webserver i need the
following code in index.html.<br>
<script type="text/javascript"
src="/static/js/jquery-2.2.3.js"></script><br>
<br>
If i open index.html locally with my webbrowser i need
the following code.<br>
script type="text/javascript"
src="../static/js/jquery-2.2.3.js"></script><br>
<br>
The difference is "/static/" vs. "../static/"<br>
<br>
Thanks,<br>
Ben<br>
<br>
<br>
<br>
_______________________________________________<br>
Flask mailing list<br>
<a moz-do-not-send="true" href="mailto:Flask@python.org"
target="_blank">Flask@python.org</a><br>
<a moz-do-not-send="true"
href="https://mail.python.org/mailman/listinfo/flask"
rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
</blockquote>
</div>
</div>
<div dir="ltr">-- <br>
</div>
<div data-smartmail="gmail_signature">>> <a
moz-do-not-send="true" href="mailto:linnchord@gmail.com">linnchord@gmail.com</a></div>
</blockquote>
<br>
</body>
</html>