Forums

My site is only loading jpg images png images are not loading

hello i have set up my site it is working perfectly but some of my images are loading and the others are not i have checked for everything i dont seem to find a problem in the code it works fine locally

Use the network tab in your browser developer tools to see if the requests for the pngs are actually being made and what might be happening to them if they are being made.

"404 not found" i have seen that it isnt just for pngs it is also for some jpgs

See https://help.pythonanywhere.com/pages/DebuggingStaticFiles/

my statics are working the 404 not found error is for some images not all

  1. Have you confirmed that the files actually exist in your directory?
  2. Have you confirmed that you app is looking at the intended directory?

yes they do exist and i can open them normally

Use the debugging method on one of the files in question and if that does not lead you to an answer, post the 3 pieces of information that the debugging process had you determine here.

how do i do that?

is there any better way we could chat?

On "Debugging issues with static files" help page you can see "You need to identify 3 pieces of information:". Follow the instructions.