projects
/
matthijs
/
projects
/
xerxes.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Add a BASE_DIR setting, that gets filled based on __file__.
[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}