I try in view:
if self.request.flavour == "mobile":
print self.request.flavour olways 'full' in view and in template request.flavour == "mobile"
class SetFlavourMiddleware(object):
def process_request(self, request):
_init_flavour(request) # it's not initialise right print self.request.flavour olways 'full' in view
I try in view: if self.request.flavour == "mobile":
print self.request.flavour olways 'full' in view and in template request.flavour == "mobile"
class SetFlavourMiddleware(object): def process_request(self, request): _init_flavour(request) # it's not initialise right print self.request.flavour olways 'full' in view