Sunday, December 26, 2010

Re: Access to request from tag

Ahh my bad. didn't see the last part of your post where you said you
had already tried the processor way :)

however the docs. mention thread safety concerns when it comes to
custom tags.
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#thread-safety-considerations

So perhabs it's not so safe to link RequestContext to a custom
template tag??

besides that I'm afraid I can't be of any assistance :) good luck.

pete

On 26 Dec., 16:10, Igor Artamonov <igor.artamo...@gmail.com> wrote:
> Yes, thank you Pete, but i know about this way. And it requires to use
> RequestContext class on _every_ view.
> I have too much of them,  and also it makes boilerplate code. So, i'm
> looking for less complicated way.
> Maybe there is exist some way to use RequestContext by default?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate