# Reduce clutter in your settings. def full_path(*parts): """Make an absolute path based on relation to this file""" return reduce(os.path.join, parts, os.path.dirname(os.path.abspath(__file__))) # Call it like so: TEMPLATE_DIRS = ( full_path('templates'), )