I’ve been given the keys to a website written in Python on the Django framework. I have a php background, so I’m not used to having to worry about compliation, etc.
I’m just trying to change the copyright at the footer. I found the template that holds the html… it’s called base.html, in the ‘templates’ folder. I changed the copyright from 2010 to 2011, but it’s not showing up on the site.
Should I need to recompile anything in order for my changes to show up?
Sounds like an important task 😉 Your python scripts (.py) are compiled to bytecode files (.pyc) automatically. If the .py file has changed or there is no .pyc file, your python interpreter will automatically compile.
AFAIK, template files (.html) are not cached in memory. But .pyc files are, and often it is necessary to tell apache to reload. To me, it sounds more like you’re changing the wrong .html file or the wrong part of the html code.
With respect to compiling, python is much like php, except that it saves its bytecode for later use.