How to Fetch Path From URL - Django

1. Path without query string
path = request.path
print(path)
2. Full path with query string
full_path = request.get_full_path()
print(full_path)

 

Total Views: 323