From: Kurtis Mullins <kurtis.mull...@gmail.com>
Date: Mon, 8 Oct 2012 10:53:53 -0400
Local: Mon, Oct 8 2012 10:53 am
Subject: Re: when is a Context Processor called?
https://docs.djangoproject.com/en/dev/topics/http/sessions/
On Mon, Oct 8, 2012 at 10:28 AM, Stefano T
> Ok.
> so basically they are called before the rendering of a template. > How can i have an object stored in the request object (if possible)?
> Something that lets me to do, in a view: request.user_profile...
> On Sunday, October 7, 2012 8:37:01 PM UTC+2, Daniel Roseman wrote:
>> On Sunday, 7 October 2012 17:43:19 UTC+1, Stefano T wrote:
>>> Hi all.
>>> def addProfile(request):
>>> this is the setting.py
>>> TEMPLATE_CONTEXT_PROCESSORS = (
>>> now, it works, except one case.
>>> $.post("/geoloc/updateloc/", { latitude: lat, longitude: lon });
>>> mapped as
>>> url(r'^geoloc/updateloc/$', 'earth.views.updateLoc'),
>>> and here is the view:
>>> @login_required
>>> the fact is that in the view, the request.user_profile (which should be
>>> basically: when is my context processor called?
>>> thanks
>>> ciao
>>> --
>> The name of the setting should give you a clue:
> --
> To post to this group, send email to django-users@googlegroups.com.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||