Use get_template() when dealing with django templates

We shouldn't open and read django templates manually. See #281 and #282.