Move TemplateAppPrefixMixin to mixins/template.py
Fix import and wrong var assignment