Re: templates: override inner nested block

2015-05-24 Thread Curtis Maloney
Could you provide a solid, minimal example of how you get this case? I have seen duplicate rendering of nested blocks happen in the past, and it was because in the resulting template, two blocks wind up with the child defined in them [this actually lead to me writing a {% reuse %} tag to take

templates: override inner nested block

2015-05-24 Thread anentropic
Currently there is a problem (correct me if wrong) when you need to override the content of an inner nested block. {% block parent %} some stuff {% block child %} child stuff {% endblock %} some other stuff {% endblock %} if you are in a template which extends the one above and you

Re: Proposal: Manually login without authenticate

2015-05-24 Thread Unai Zalakain
3) Use the only configured backend, if there is only one. 4) Raise ValueError("You have multiple authentication backends configured; you must provide the `backend` argument to `login`.") What about defaulting the backend argument to Django's default auth backend? This way most of the sites