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_
From the current file path you could use:
os.path.join(os.path.dirname(__file__),'..','img','banner.png')