Saturday, February 27, 2016

Re: Default Site

This is task for apache not for django.
G
26 лют. 2016 23:06 <dhall@edx.org> пише:
> no
> Hi,
>
>
> Shouldn't django.contrib.sites.models.SiteManager.get_current() first check the given request to determine the current site and then look at the SITE_ID setting?
>
>
> I would like to have multiple Sites and choose the current site based on the context of the request, but fall back to the configured SITE_ID setting if there doesn't happen to be a request available.
>
>
> Is this a bug or am I missing something?
>
>
> Thanks,
>
>
> - Doug
>
> --
> 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+unsubscribe@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/fe79eaa4-a276-423d-bdb8-bda0759977b2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CADTRxJMrn-oMxD%3DQ57bpbw6%3DTOhz39tVgLEv5bE0vpb9VBbd1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment