projects
/
matthijs
/
projects
/
xerxes.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b0d028241f7224f7692a5f4b2dd0cafd6d3b0b14
[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}