Add hidden "next" fields to the comment forms.
[matthijs/projects/xerxes.git] / tools / context_processors.py
1 from django.conf import settings
2
3 """
4 Some useful context processors.
5 """
6 def static(request):
7     """
8     Adds url of static files to the context.
9     Requires STATIC_URL to be set in the settings.
10
11     """
12     return {'STATIC_URL_PREFIX': settings.STATIC_URL_PREFIX}
13 # vim: set sts=4 sw=4 expandtab: