I want to display the current url in django template. I tried {{request.get_full_path}} but this is not working with me. Any solution?
If you need something like "http://example.com/music/bands/the_beatles/?print=true" try {{request.build_absolute_uri}}
--To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/PzqmOq5u8ysJ.
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Hello,
Once I used request.META["PATH_INFO"]