There is a current proposal from Florian Apolloner
> I am really starting to lean towards introducing a setting (yes!) called
`BASE_URL` that can be set to `https://mysite.com/subpath`. This would
allow for a) generating URLs outside a request context and b) allow us to
mostly ignore script prefix. We could also use a relative `STATIC_URL` and
append it to `BASE_URL`. This way there would be just one setting that
requires changing and many projects hopefully would make that configurable
via env vars etc.
--
Ticket URL: <https://code.djangoproject.com/ticket/34461>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Florian Apolloner, David Sanders, Stewart Adam (added)
* resolution: => wontfix
* status: new => closed
* component: Uncategorized => Core (Other)
Comment:
Thanks for the ticket. Creating a new setting is always controversial (we
already have many of them) so please first start a discussion on the
DevelopersMailingList, where you'll reach a wider audience and see what
other think, and
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features follow the guidelines with regards to
requesting features].
--
Ticket URL: <https://code.djangoproject.com/ticket/34461#comment:1>
Comment (by Sarah Boyce):
Sorry 👍 moved to here: https://groups.google.com/g/django-
developers/c/YzRj7OXpLkk
--
Ticket URL: <https://code.djangoproject.com/ticket/34461#comment:2>