Re: Proposal: Constructing urls outside the request cycle

2023-04-17 Thread Florian Apolloner
On Sunday, April 16, 2023 at 10:21:20 AM UTC+2 Adam Johnson wrote: One question though, how will we support projects that are served at multiple domains? Would Django only support the "main" site through BASE_URL and require you to perform URL construction for other domains as required? As us

Re: Proposal: Constructing urls outside the request cycle

2023-04-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
A setting isn't so mad. Many Django projects I've seen use a similar custom setting for constructing URLs outside of requests. One question though, how will we support projects that are served at multiple domains? Would Django only support the "main" site through BASE_URL and require you to perfor

Proposal: Constructing urls outside the request cycle

2023-04-06 Thread Sarah Boyce
Hello 👋 This is a summary of some previous discussions which need opening up to the group 👍 There is a need to have some kind of URL outside the request cycle (such as sending emails which need to create a link). For constructing a correct MEDIA_URL / STATIC_URL we wanted to use the script pr