[Answer]-Django gives 404 error when loading static files AFTER jquery .load is called

1👍

Your problem is that staticfiles doesn’t interpret django template tags in a static html file, so you’ll need to write /static/templates/usersPostsSection.html as plain html.

%7B%%20static%20'js/jquery.js'%20%%7D is just the url-escaped value of {% static 'js/jquery.js' %}.

Alternately, you could serve that file via a django view (do you already do this at /home/?) and load it from there, instead of as a static file.

👤Greg

Leave a comment