33 | | self.title_template_name = self.title_template or ('feeds/%s_title.html' % slug) |
34 | | self.description_template_name = self.description_template or ('feeds/%s_description.html' % slug) |
| 33 | self.appname = request.path.split('/')[1] # get app name from url |
| 34 | if self.appname: |
| 35 | self.title_template_name = self.title_template or \ |
| 36 | ('%s/feeds/%s_title.html' % (self.appname, slug)) |
| 37 | self.description_template_name = self.description_template or \ |
| 38 | ('%s/feeds/%s_description.html' % (self.appname, slug)) |
| 39 | else: |
| 40 | self.title_template_name = self.title_template or ('feeds/%s_title.html' % slug) |
| 41 | self.description_template_name = self.description_template or ('feeds/%s_description.html' % slug) |