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

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

src/d/j/django-hotsauce-0.5.0/examples/auth/redirect.py   Django-hotsauce(Download)
#!/usr/bin/env python
#from authkit.authenticate import middleware
from notmm.controllers.wsgi import WSGIController
from notmm.controllers.auth import LoginController
from notmm.utils.http import httpserver
auth_conf = global_conf['authkit']
#import pdb; pdb.set_trace()
auth_app = LoginController(sample_app, auth_conf, settings=settings)
if __name__ == '__main__':
    httpserver.daemonize(auth_app, ('localhost', 8000))

src/d/j/django-hotsauce-0.5.0/tests/apps/libauthkit/test_controller.py   Django-hotsauce(Download)
import sys
#import mainapp
from notmm.controllers.wsgi import WSGIController
from notmm.controllers.auth import LoginController
from notmm.utils.wsgilib import HTTPRequest
    def test_init_middleware(self):
 
        self.callback = LoginController(self.wsgi_app, auth_conf)