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_
With using os.path we can go one directory up like that
os.path
one_directory_up_path = os.path.dirname('.')
also after finding the directory you want you can join with other file/directory path
other_image_path = os.path.join(one_directory_up_path, 'other.jpg')