Forums

Mezzanine static files issue

Hi all,

I'm new to python and django and I have been following the guides on,

https://help.pythonanywhere.com/pages/HowtouseMezzanineonPythonAnywhere/
https://help.pythonanywhere.com/pages/UsingMySQL

with no success. I have set the settings on the static tab too and removed the virtualenv and reloaded it. It seems from the error logs, django is looking for files with "/" at the end. How do I fix that?

2017-10-01 02:29:44,660: Not Found: /static/css/bootstrap.css/
2017-10-01 02:29:44,677: Not Found: /static/css/mezzanine.css/
2017-10-01 02:29:44,695: Not Found: /static/css/bootstrap-theme.css/
2017-10-01 02:29:44,714: Not Found: /static/mezzanine/js/jquery-1.8.3.min.js/
2017-10-01 02:29:44,734: Not Found: /static/js/bootstrap.js/
2017-10-01 02:29:44,889: Not Found: /static/js/bootstrap-extras.js/
2017-10-01 02:36:08,240: Not Found: /static/css/bootstrap.css/
2017-10-01 02:36:08,326: Not Found: /static/css/mezzanine.css/
2017-10-01 02:36:08,444: Not Found: /static/css/bootstrap-theme.css/
2017-10-01 02:36:08,530: Not Found: /static/mezzanine/js/jquery-1.8.3.min.js/
2017-10-01 02:36:08,657: Not Found: /static/js/bootstrap.js/
2017-10-01 02:36:08,811: Not Found: /static/js/bootstrap-extras.js/

Thanks for everyone's help! :)

hi there, do any of these tips help? https://help.pythonanywhere.com/pages/DebuggingStaticFiles/

Thanks harry! I've tried them didn't work. What fixed it was setting the PROJECT_ROOT to /home/noodlesoup/<project_name>/

glad you figured it out!

This worked for me too thank you for posting!