我已经使用python,flask和html创建了一个网页应用程序。我创建了一个简单的索引页应该给我访问其他网页,但每次我运行应用程序,这是错误我得到:Web应用程序出错
调用Element.createShadowRoot()对于已经承载 阴影元素根被弃用。
瓶应用:
import flask as fl
import itertools as it
app = fl.Flask(__name__)
@app.route("/")
def root():
return app.send_static_file('index.html')
@app.route("/perms", methods=["GET", "POST"])
def perms():
perms = [''.join(p) for p in it.permutations(fl.request.values["userinput"])]
return '\n'.join(perms)
if __name__ == "__main__":
app.run()
HTML:
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">My Music Store</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="addToStore.html">Add</a></li>
<li><a href="#">My Store</a></li>
</ul>
</div>
</nav>
<div class="container">
<h3>What is My Music Store?</h3>
<p>This is a single web application that allows a user store their favorite songs and artist so they never forget a song.</p>
</div>
您能否显示您的代码?否则,有点难以帮助你。 – ZombieChowder
好的开始,现在显示你的Python代码......实际的问题可能在哪里.. – ZombieChowder
这似乎与Python或Flask没有任何关系。请阅读[问]和[mcve]。 – davidism