Render a template, using a different one automatically for AJAX requests.
Parameters: |
|
---|
For AJAX requests, the template list is altered to look for alternate templates first and the is_ajax context variable is set to True.
For example, if template_list was set to ['custom/login.html', 'login.html'], then an AJAX request will change this to:
['custom/login.ajax.html', 'login.ajax.html',
'custom/login.html', 'login.html']