Nested {% block %} statement runs independent of {% if-statement %} validity Django
问题 Under Django v1.4.3 Why does the if-statement in Django Template Case 1 below always display the contents of the block-statement independent of whether the if-statement is TRUE? Are block-statements always executed before if-statements in templates? (Maybe I missed this in the documentation.) View.py (note that map_url is intentionally 'not' provided for testing purposes): def post_address(request): return render_to_response( 'record/post_address.html', {'form': form}, context_instance