我在google上搜索,没有结果,怎么解决?
错误消息:
There is no locally stored library for the HTTP link. Checks that URL of an external JavaScript library is associated with a locally stored file used for code completion and navigation. Use 'Download library' quick fix (Alt+Enter) to solve the problem.
我的模板:
{% load staticfiles %}
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
</head>
<body>
<form method="post" action="./">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="post"></p>
</form>
</body>
</html>
在后面插入“http:”后仍然有这个问题。
最佳答案
确保您已连接到互联网。单击该链接,按 Alt+Enter,然后再次按 Enter。 PyCharm 将下载 JS 文件,将其存储在本地,并使警告消失。
或者,您可以点击链接,然后点击灯泡,然后点击“下载库”。
但是,您不需要本地存储的 JS 库。只要您在线,您的模板就可以正常工作。
关于JavaScript 和 Django, "there is no locally stored liblary for the HTTP",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41942577/