Click here to Skip to main content
15,904,653 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I am a beginner in using python and am working on a project. I used this command "python manage.py runserver" several times and worked well until I encountered these following errors when I used "inspect" in my web browser.
1.Failed to load resource: the server responded with a status of 404 (Not Found)
popper.min.js:1
2.Failed to load resource: the server responded with a status of 404 (Not Found)
bootstrap.min.js:1
3.Failed to load resource: the server responded with a status of 404 (Not Found)
(index):336
4. Uncaught ReferenceError: $ is not defined at (index):336
5.logo.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)The page could not display the css, but displayed plain text.

What I have tried:

I checked the path and is correct :






{% block css %}

{% endblock css %}
Posted
Updated 5-Oct-21 12:55pm

1 solution

I guess you have used a template file and it is trying to load the Bootstrap from your local machine, that's why it has the following error:
1.Failed to load resource: the server responded with a status of 404 (Not Found)
popper.min.js:1
To fix the Bootstrap related issues, you can simply replace the Bootstrap (popper, jQuery) links using their CDN links. Official CDN of Bootstrap and Font Awesome · BootstrapCDN[^].

This way when your website will launch and the web page would load. The browser will look for these resources from the CDN, and not your local machine.

Of course you can put these files on your local machine too, Download · Bootstrap[^], but that would require you to publish the files to the production server when you deploy your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900