Did I find the right examples for you? yes no

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

src/i/o/ionyweb-0.3/ionyweb/website/middleware.py   ionyweb(Download)
 
from ionyweb.website.models import WebSite, WebSiteOwner
from ionyweb.website.views import render_website
 
class ProvideWebSiteMiddleware():
    def process_request(self, request):
        if not request.path_info.startswith('/_'):
            return render_website(request, request.path_info)
        else:
            return None

src/i/o/ionyweb-HEAD/ionyweb/website/middleware.py   ionyweb(Download)
 
from ionyweb.website.models import WebSite, WebSiteOwner
from ionyweb.website.views import render_website
 
class ProvideWebSiteMiddleware():
    def process_request(self, request):
        if not request.path_info.startswith('/_'):
            return render_website(request, request.path_info)
        else:
            return None