No need for a specific context processor
This commit is contained in:
parent
2437334940
commit
5e35a9799b
2 changed files with 2 additions and 6 deletions
|
@ -6,7 +6,8 @@ from . import __version__
|
||||||
def settings(request):
|
def settings(request):
|
||||||
return {
|
return {
|
||||||
'UMAP_FEEDBACK_LINK': djsettings.UMAP_FEEDBACK_LINK,
|
'UMAP_FEEDBACK_LINK': djsettings.UMAP_FEEDBACK_LINK,
|
||||||
'SITE_NAME': djsettings.SITE_NAME
|
'SITE_NAME': djsettings.SITE_NAME,
|
||||||
|
'ENABLE_ACCOUNT_LOGIN': djsettings.ENABLE_ACCOUNT_LOGIN,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +16,3 @@ def version(request):
|
||||||
'UMAP_VERSION': __version__
|
'UMAP_VERSION': __version__
|
||||||
}
|
}
|
||||||
|
|
||||||
def authentication(request):
|
|
||||||
return {
|
|
||||||
'ENABLE_ACCOUNT_LOGIN': settings.ENABLE_ACCOUNT_LOGIN
|
|
||||||
}
|
|
||||||
|
|
|
@ -119,7 +119,6 @@ TEMPLATES = [
|
||||||
'social.apps.django_app.context_processors.login_redirect',
|
'social.apps.django_app.context_processors.login_redirect',
|
||||||
'umap.context_processors.settings',
|
'umap.context_processors.settings',
|
||||||
'umap.context_processors.version',
|
'umap.context_processors.version',
|
||||||
'umap.context_processors.authentication',
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue