Re: Adding to all templates context via Middleware

2018-05-14 Thread Melvyn Sopacua
On maandag 7 mei 2018 17:59:02 CEST Daniel Roseman wrote: > I still don't understand what is being repeated or why. You need to specify > that in your settings, and you can add whatever context processors you > like. You don't need to specify it twice, so nothing is being repeated. What Bernd

Re: Adding to all templates context via Middleware

2018-05-07 Thread Daniel Roseman
I still don't understand what is being repeated or why. You need to specify that in your settings, and you can add whatever context processors you like. You don't need to specify it twice, so nothing is being repeated. -- You received this message because you are subscribed to the Google

Re: Adding to all templates context via Middleware

2018-05-07 Thread Bernd Wechner
Daniel, The backend code contains: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, "templates"),], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [

Re: Adding to all templates context via Middleware

2018-05-03 Thread Daniel Roseman
On Thursday, 3 May 2018 01:36:26 UTC+1, Bernd Wechner wrote: > > This interests me: > > > https://teamtreehouse.com/community/django-how-can-i-retrieve-a-value-from-the-middleware > > alas no answer there, and time has changed things. > > I have checked form experience, that stuff added to

Adding to all templates context via Middleware

2018-05-02 Thread Bernd Wechner
This interests me: https://teamtreehouse.com/community/django-how-can-i-retrieve-a-value-from-the-middleware alas no answer there, and time has changed things. I have checked form experience, that stuff added to response.context_data in middleware is not seen in templates (perhaps comes

Adding to all templates context via Middleware

2018-05-01 Thread Bernd Wechner
This interests me: https://teamtreehouse.com/community/django-how-can-i-retrieve-a-value-from-the-middleware alas no answer there, and time has changed things. I have checked form experience, that stuff added to response.context_data in middleware is not seen in templates (perhaps comes too