1 from forum import settings
3 def application_settings(context):
4 return {'settings': settings}
6 def auth_processor(request):
7 if hasattr(request, 'user'):
9 if user.is_authenticated():
10 messages = user.message_set.all()
14 from django.contrib.auth.models import AnonymousUser
15 user = AnonymousUser()
18 from django.core.context_processors import PermWrapper
22 'perms': PermWrapper(user),