Re: Finding out the name of the named url used

2008-08-26 Thread mediaflos
>From what I now understand, this is indeed impossible. But I would appreciate it if someone could confirm this. And so what is the best way to lookup a table entry based on the page viewed? I have a table called Page and it contains things like page title, meta tags, which menu section each page

Finding out the name of the named url used

2008-08-21 Thread 7timesTom
I have general processing to do in my context processor based on which url was used. How can find out the name of the url used eg in my middleware. I feel like I want to do: def process_view(self, request, view_func, view_args, view_kwargs): request.url_name = view_kwargs.get('name', Non