Is there a handy function that converts absolute url to relative url in django?
Preferably, it would return the absolute url if base url doesn't actually match.
Asked
Active
Viewed 3,070 times
5

eugene
- 39,839
- 68
- 255
- 489
-
do you mean the other way round ? Because `get_absolute_url` gives you a relative URL – karthikr May 29 '13 at 02:00