0

While using this implementation for logging events by view I came across the need to get the name of the view. How do you do that ?

Community
  • 1
  • 1
AlexandruC
  • 3,527
  • 6
  • 51
  • 80

1 Answers1

1

you can get the resolved url from the request object

request.resolver_match.view_name
Hedde van der Heide
  • 21,841
  • 13
  • 71
  • 100