Dynamically choose which base template to extend in django
django, django-templates, templates
Solution
Sure, you can just use a template variable as the template name. Try it out! :-)
Problem
I have content that is going to be the exact same between the mobile and web site. The only thing i want to change is the base template. One base template for the mobile HTML, and one for the website HTML. One solution is to wrap the render_to_response and determine which HTML to render, but I'd still have two files. Is there a way I can dynamically tell the template which page to extend?