I am using request.path to return current url in django, it is returning /get/category.
request.path
/get/category
I need it as get/category (without leading and trailing slash). I don't want to use string functions.
get/category
Any idea?
No comments:
Post a Comment