I do not load javascript in django 1.11

0

I'm doing a website in django , but when I run the application loads the HTML and CSS but not the JavaScript, why is it? The errors shown are the following:

  [28/Sep/2017 14:02:23] "GET / HTTP/1.1" 200 26231
    [28/Sep/2017 14:02:23] "GET /static/css/bootstrap.css HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/css/style.css HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/css/flexslider.css HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/modernizr-2.6.2.min.js HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/css/zoomslider.css HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/css/font-awesome.css HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/jquery-2.1.4.min.js HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/jquery.zoomslider.min.js HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/main.js HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/simplePlayer.js HTTP/1.1" 304 0
    [28/Sep/2017 14:02:23] "GET /static/js/jquery.flexslider.js HTTP/1.1" 304 0
    
asked by hernan dario zapata villa 28.09.2017 в 22:50
source

1 answer

0

The status code 304 is not an error, it means that the file was not modified and the same is served.

Maybe you should run collectstatic if you edited the file and it is not reflected in the app, and reload it by pressing the "Ctrl" key.

    
answered by 01.10.2017 в 06:28