In [7082] we removed the possibility to put extends below another tag except comment tags (in [7089]) and spaces. Otherwise it will raise a !TemplateSyntaxError. This is not a backward incompatible change because documentation had always specified that [http://www.djangoproject.com/documentation/templates/#template-inheritance you should use extends tag at first] but it may break your code if you haven't followed those instructions.