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 used in the templates as well as django.core.urlresolvers.reverse() being used in the code. However, I think we need to catch the case where url or reverse() are returning "site.url/year/slug/some/more/path/" and convert it to "subdomain.sponsor.url/some/more/path/" based on the http_host in the request. I'm wondering if this is a solved problem? Thanks, R. On Mon, Jun 4, 2018 at 6:02 AM Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > 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 think Django is part of the problem, short of > ALLOWED_HOSTS setting. > > Your problem would be in the webserver configuration and as you suspected > the > SSL certificate. > > Why don't you add a subdomain 'test', add it to allowed hosts setting, add > the > certificate and see what breaks. I don't think anything breaks at all. > -- > Melvyn Sopacua > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/jZt_bO2dR5c/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/33245904.Kc6r1lpH81%40fritzbook > . > For more options, visit https://groups.google.com/d/optout. > -- R. Richard Brockie Real-time bicycle race results - www.ontheday.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKv-vOXt%3Dqv93UEEkc1x%2BeP8HDJgAqjnNgXBNzw1KC_W3Rp9Fg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.