I recently upgrade Django from v1.3.1 to v1.4.
In my old settings.py I have
settings.py
TEMPLATE_DIRS = ( os.path.join(os.path.dirname( __file_
I think the easiest thing to do is just to reuse dirname() So you can call
os.path.dirname(os.path.dirname( __file__ ))
if you file is at /Users/hobbes3/Sites/mysite/templates/method.py
This will return "/Users/hobbes3/Sites/mysite"