Added modes for Django templates and for mixed Django/HTML.