Forums

CSS Files not loading

The CSS files for my app tonyops.pythonanywhere.com load when the connection is not secure (http://tonyops.pythonanywhere.com) but fail to load when the connection is secure (https://tonyops.pythonanywhere.com). The error log does not capture any useful information related to this. What could be the cause of this?

It's a django app & I have already run python manage.py collectstatic to no avail.

that's because you have non-pythonanywhere static files that are loading via http instead of https

Thanks for the reply Conrad. I changed the links to the static files from http to https & it resolved the issue. I owe you a drink!

:D