views.py 文件源码

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

项目:django-registration 作者: plivo 项目源码 文件源码
def setUp(self):
        """
        These tests use the default backend, since we know it's
        available; that needs to have ``ACCOUNT_ACTIVATION_DAYS`` set.

        """
        self.old_activation = getattr(settings, 'ACCOUNT_ACTIVATION_DAYS', None)
        if self.old_activation is None:
            settings.ACCOUNT_ACTIVATION_DAYS = 7 # pragma: no cover
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号