Возможно, ваш auth.user None
вот быстрая проверка, что это исключение
>>> hello='hello %(first_name)s' % None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: format requires a mapping
Вы можете попробовать что-то подобное
hello = 'hello %(first_name)s %s' % auth.user if auth.user else ''
return dict(listings=listings, hello=hello)