load_email_templates.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:plugs-mail 作者: solocompt 项目源码 文件源码
def get_apps(self):
        """
        Get the list of installed apps
        and return the apps that have
        an emails module
        """
        templates = []
        for app in settings.INSTALLED_APPS:
            try:
                app = import_module(app + '.emails')
                templates += self.get_plugs_mail_classes(app)
            except ImportError:
                pass
        return templates
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号