Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in middleware #12

Open
rocchidavide opened this issue Jul 16, 2016 · 3 comments
Open

Usage in middleware #12

rocchidavide opened this issue Jul 16, 2016 · 3 comments

Comments

@rocchidavide
Copy link

Is it possible to use it in a middleware?

@beruic
Copy link

beruic commented Jul 18, 2016

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
Copy link
Author

I have already user_agents middleware put before mine, but it works only in process_view(), not in process_request().. is it ok?

@beruic
Copy link

beruic commented Jul 21, 2016

How exactly do you use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@beruic @rocchidavide and others