I’m pretty new to web development, and I’ve run into an issue that I don’t really know enough terminology about to look in the right places.
I have a file foo.py that I have on my site, and when someone accesses that file on the web, I want to make it so that it displays the source code of the file as it would a .txt file. However, when I try to navigate to this page, I instead get a 500 Internal Server Error.
Upon checking my server log, I see the following error:
Does anyone know how to fix this? Even just letting me know what to search for would be appreciated.