a28c00e474
- The login views are in `gestion/` - The templates are under `gestion/templates/gestion/` - `cof/shared.py` moves to `gestion/` and is splitted into 3 files: - The auth backends are in `backends.py`. - The context_processor is in `context_processor.py` - The LOCK/UNLOCK functions remain in `shared.py`
10 lines
252 B
Python
10 lines
252 B
Python
from django.contrib.sites.models import Site
|
|
|
|
|
|
def context_processor(request):
|
|
'''Append extra data to the context of the given request'''
|
|
data = {
|
|
"user": request.user,
|
|
"site": Site.objects.get_current(),
|
|
}
|
|
return data
|