-
Notifications
You must be signed in to change notification settings - Fork 95
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
how to use it function base view #72
Comments
Hello @pawanvirsingh, can you be more precise in your question ? maybe give some code exemple ? Thanks |
@triat yes views.pyfrom rest_framework import generics class LoggingView(LoggingMixin, generics.GenericAPIView): this is for the class base view but if wanted it to use in function base view @api_view(['GET']) |
I'm not sure about what's you're trying to do there. What's your looking for is a middleware that log stuff, it's not the purpose of DRF-tracking I think. |
hey @triat I am saying that we are using drf tracking in class base view (Django ) can we also use it in function base view -- like any other decorator. |
I'm not sure, this is really specific to DRF. You can try but again, that was not the main purpose there |
This is solutions for your task, but I prefer work with class views 😉 it is possible update to work with rewrite
|
how to use it function base view
The text was updated successfully, but these errors were encountered: