Usage in middleware
rocchidavide opened this issue · 3 comments
rocchidavide commented
Is it possible to use it in a middleware?
beruic commented
Well... It is a middleware (see https://github.com/selwin/django-user_agents/blob/master/README.rst#middleware), so you can just place your own middleware after the this one, and have it accessible there.
rocchidavide commented
I have already user_agents middleware put before mine, but it works only in process_view(), not in process_request().. is it ok?
beruic commented
How exactly do you use it?