Hi there, I love the concept of DRY, and django's enthusiasm for this concept. In light of this I have tried to have a template extend a template, but it doesn't seem to work. Is there a better way than what I'm currently doing?
The current way index.html {% if current_user %} {% extends "_logged_out_template.html" %} {% else %} {% extends "_logged_in_template.html" %} {% endif %} contact.html {% if current_user %} {% extends "_logged_out_template.html" %} {% else %} {% extends "_logged_in_template.html" %} {% endif %} The way I would like it to be (but it didn't work) index.html {% extends "_base_template.html" %} _base_script.html {% if current_user %} {% extends "_logged_out_template.html" %} {% else %} {% extends "_logged_in_template.html" %} {% endif %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/8j1xs23yjnAJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.