Tuesday, 30 December 2014

How to get current url path in Django python?

# Get current url path in Django

1. Use this code

    currenturl = request.get_full_path()

    print(currenturl)

* If you will use  print () then output will be shown in your terminal

No comments:

Post a Comment