converting more templates to django