Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  19] [ 1]  / answers: 1 / hits: 19535  / 12 Years ago, tue, july 17, 2012, 12:00:00

I am interested in using the jQuery tablesorter but somehow am unable to.
I have followed the instructions and have placed jquery.js and the tablesorter.js in the same folder as my templates (the folder where the html file is). Unfortunately, when trying to access the .js files, it keeps hitting a 404, which I'm assuming means that the files are not on the correct path.
Any ideas for this fix?



Does django have a special place to place these js files? (not in the templates folder?)



<script type=text/javascript src=jquery-latest.js></script> 
<script type=text/javascript src=jquery.tablesorter.js></script>
<script type =text/javascript>
$(document).ready(function()
{
$(#myTable).tablesorter();
}
);


The myTable is the same exact table as the one in the examples


More From » jquery

 Answers
6

Usually jquery, js, css, images and most of other static contents are handled as static files and not as django templates. Read managing static files docs.


[#84202] Monday, July 16, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kylie

Total Points: 121
Total Questions: 84
Total Answers: 91

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;