0

I'm trying to use a javascript file for the first time in Django. I've tried putting my file in a directory called 'static/js' both in the main project directory and also under the application directory. In both cases, when I do the runserver and go to the page, the file is not found (I used the inspect element option in Chrome).

It says that the location it is looking for the file is '/static/js/script.js' which is what I expect (I think), but says that it can't be found.

There are various other questions saying basically the same thing and I've tried their answers but they don't seem to work...

Cheers.

4

0 回答 0