Friday, February 26, 2016

Default Site

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.

No comments:

Post a Comment