In my view, I want to make a request to mine.com/more/stuff/ from an arbitrary page such as mine.com/lots/of/stuff/to/use or from mine.com. Thus, I can’t make this a relative request using ./ or ./../ type things. Do I have to use a context processor to do {{URL_BASE}}more/stuff/? Is there a set way to do this in Django or a best way?
In my view, I want to make a request to mine.com/more/stuff/ from an arbitrary
Share
Instead of a relative url, use an absolute url:
/If you’re on
mine.com/lots/of/stuff/to/useormine.com, hitting a link with url:/foo/will both go tomine.com/foo/