I want to associate my URL patterns in Django with an external URL because some of my views need to direct to different subdomains. Please note that all of the subdomains use the exact same Django instance, so I'm still referencing local views in my application. I just need to send a user away to a different domain in some cases. I've considered the sites framework but there are other factors preventing me from using that. The solution seems to be almost there, but I have one stumbling block.
I do this:
urlpatterns += [
path("https://subdomain.mywebsite.com/", include("site.urls")),
]
This work. However, when I generate my URLS like so:
<a href="{% url "somepage" %}">link</a>
Then it leads to:
<a href="/https://subdomain.mywebsite.com/record/">link</a>
In other words, there is a slash in front of the URL generated. Other than that, everything works well. How can I get rid of that one?