Restructure our python module. A lot.

This commit is contained in:
Raphael Michel
2015-02-14 17:55:13 +01:00
parent cf18f3e200
commit 077413f41c
117 changed files with 193 additions and 163 deletions

View File

@@ -0,0 +1,14 @@
from django.conf import settings
from django.core.urlresolvers import resolve
def contextprocessor(request):
"""
Adds data to all template contexts
"""
ctx = {
'url_name': resolve(request.path_info).url_name,
'settings': settings,
}
return ctx