mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Restructure our python module. A lot.
This commit is contained in:
14
src/pretix/control/context.py
Normal file
14
src/pretix/control/context.py
Normal 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
|
||||
Reference in New Issue
Block a user