Re: Sponsor subdomain pointing to part of our Django site?

2018-06-05 Thread Richard Brockie
Hi James, On Tue, Jun 5, 2018 at 2:19 PM James Schneider wrote: > On Mon, Jun 4, 2018, 12:37 PM Melvyn Sopacua > wrote: > >> Aha! Now I get it! This should be solveable at the WSGI layer: >> >> >> >> PATH_INFO >> >> The remainder of the request URL's "path", designating the virtual >>

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread James Schneider
On Mon, Jun 4, 2018, 12:37 PM Melvyn Sopacua wrote: > On maandag 4 juni 2018 20:40:03 CEST Richard Brockie wrote: > > > On Mon, Jun 4, 2018 at 9:01 PM Melvyn Sopacua > wrote: > > > > This isn't a problem. Neither url nor reverse is capable of returning > URLs > > > > with hostnames, at least

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread Melvyn Sopacua
On maandag 4 juni 2018 20:40:03 CEST Richard Brockie wrote: > On Mon, Jun 4, 2018 at 9:01 PM Melvyn Sopacua wrote: > > This isn't a problem. Neither url nor reverse is capable of returning URLs > > with hostnames, at least not that I'm aware of. Only django.contrib.site > >

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread Richard Brockie
On Mon, Jun 4, 2018 at 9:01 PM Melvyn Sopacua wrote: > This isn't a problem. Neither url nor reverse is capable of returning URLs > with hostnames, at least not that I'm aware of. Only django.contrib.site >

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread Melvyn Sopacua
On maandag 4 juni 2018 13:26:24 CEST Richard Brockie wrote: > However, I'm pretty sure that we will need to make some changes to our > project to deal with links when the site is being accessed through > "subdomain.sponsor.url/". You are correct that {% url %} is used in the > templates as well

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread Richard Brockie
Hi Melvyn, Thanks for the reply. We will test this after getting the ssl certificates sorted out. However, I'm pretty sure that we will need to make some changes to our project to deal with links when the site is being accessed through "subdomain.sponsor.url/". You are correct that {% url %} is

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-03 Thread Melvyn Sopacua
On zondag 3 juni 2018 22:45:31 CEST Richard Brockie wrote: > Any advice on how I can accomplish this? Any particular things I would need > to do in the Django project to make this possible? Since you seem to be using the {% url %} tag and have no absolute URLs with the hostname in it, I don't

Sponsor subdomain pointing to part of our Django site?

2018-06-03 Thread Richard Brockie
Hi, I’m wondering if it is possible to use a subdomain of a sponsor’s url as an alias to a particular part of our Django site? Our Django site has urls of the form: “site.url/year/slug/*” where “*” represents a large set of child pages for various data reports and update actions related to a