Re: Generic template; determining information about calling view/app

2015-05-10 Thread Gergely Polonkai
Hello, I wrote a middleware[1] for my old blog engine; here, view_func.__module__ is the app’s name. It is not really sophisticated, though, but it may provide a good start. About the URL namespace, I don’t think it’s easy to do. An app doesn’t have a namespace; you can include an url definition

Generic template; determining information about calling view/app

2015-05-08 Thread David
Hi Sorry if this is confusing, it's the best I can describe. I have been separating my templates for inheritance clarity. I have a generic template 'category_list.html'. This can be used by different apps because the layout is the same. What I need to do in order to use appropriate links in th