3
rated 0 times
[
5]
[
2]
/ answers: 1 / hits: 16156
/ 9 Years ago, mon, august 17, 2015, 12:00:00
Well my template code.
<!DOCTYPE html>
<html>
<head>
{% load staticfiles %}
<script type=text/javascript src=http://code.jquery.com/jquery-latest.min.js></script>
<script type=text/javascript src={% static 'website/staffaddproblem.js' %}></script>
<title>Dashboard</title>
<link href={% static 'website/style.css' %} rel=stylesheet type=text/css/>
</head>
<body>
body
</body>
<html>
As you can see it has a css file. which is working properly, but java script file does not work.
when i load the page its source looks like this.
When i click the link it loads the file too its there its linking fine but its not working . there is no problem in code js code working fine when written in same file.
More From » django