Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/pyroutes-HEAD/pyroutes/http/cookies.py   pyroutes(Download)
        if key in self._raw_cookies:
            if '%s_hash' % key in self._raw_cookies:
                if settings.SECRET_KEY is None:
                    raise CookieKeyMissing(
                            'Set SECRET_KEY in settings to use cookies')
 
        if sign:
            if settings.SECRET_KEY is None:
                raise CookieKeyMissing(
                        'Set SECRET_KEY in settings to use cookies')

src/p/y/pyroutes-0.5.0/pyroutes/http/cookies.py   pyroutes(Download)
        if key in self._raw_cookies:
            if '%s_hash' % key in self._raw_cookies:
                if settings.SECRET_KEY is None:
                    raise CookieKeyMissing(
                            'Set SECRET_KEY in settings to use cookies')
 
        if sign:
            if settings.SECRET_KEY is None:
                raise CookieKeyMissing(
                        'Set SECRET_KEY in settings to use cookies')

src/p/y/pyroutes-HEAD/tests/cookie_test.py   pyroutes(Download)
    def test_no_SECRET_KEY(self):
        key = settings.SECRET_KEY
        handler = ResponseCookieHandler()
        settings.SECRET_KEY = None
        self.assertRaises(CookieKeyMissing, handler.add_cookie, 'foo', 'bar')