[Answered ]-HTML show image if it exists and show nothing if it doesn't 3 January 2024 by thecoderscamp.com 1👍 I think you should try os.path.exist 👤Dmitry Nekrasov [Answered ]-Django error: The value of 'ordering[0]' refers to 'username', which is not an attribute of 'accounts.clinic_staff' Source:stackexchange.com