How can I solve it, I was searching in google, without result?
Error message:
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 pletion and navigation. Use 'Download library' quick fix (Alt+Enter) to solve the problem.
My template:
{% load staticfiles %}
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src=".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>
After insert "http:" behind I still have this problem.
How can I solve it, I was searching in google, without result?
Error message:
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 pletion and navigation. Use 'Download library' quick fix (Alt+Enter) to solve the problem.
My template:
{% 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./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>
After insert "http:" behind I still have this problem.
Share Improve this question edited Jan 30, 2017 at 20:15 Ramon Melo 2702 gold badges9 silver badges22 bronze badges asked Jan 30, 2017 at 18:06 KichiinKichiin 482 silver badges9 bronze badges 1- 1 Does it work? "There is no locally..." it's just Intellij(PyCharm) warning that you don't have a local copy of the library – zelenyjan Commented Jan 30, 2017 at 18:21
3 Answers
Reset to default 6Make sure you are connected to the Internet. Click on the link, press Alt+Enter, then Enter again. PyCharm will download the JS file, store it locally, and make the warning go away.
Alternatively, you can click on the link, then in the light bulb, then on "Download library".
You don't need a locally stored JS library, however. Your templates will work just as well, as long as you are online.
You have to download that library or use it from web like this:
<script src"https://ajax.googleapis./ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Please include the text of your error and the code causing it, not a screenshot.
You need http:
in front of the //
on the line in question.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745080302a4610084.html
评论列表(0条)