Esempio n. 1
0
    def render_to_response(self, context):
        template = TEMPLATE_ENV.get_template(self.template_name)

        context['TEMPLATE_NAME'] = self.template_name.split('/')[-1].split('.')[0]
        for processor in get_standard_processors():
            context.update(processor(self.request))

        response = HttpResponse(content=template.render(**context))
        response.template_name = self.template_name
        return response
Esempio n. 2
0
 def email_text(self):
     return TEMPLATE_ENV.get_template('report/report-manga-email.txt').render({'report': self})
Esempio n. 3
0
 def info_text(self):
     return TEMPLATE_ENV.get_template('manga/manga-archive-info.txt').render({'manga': self})