Default Site

32 views
Skip to first unread message

dh...@edx.org

unread,
Feb 26, 2016, 4:07:44 PM2/26/16
to Django users

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

Sergiy Khohlov

unread,
Feb 27, 2016, 2:14:43 PM2/27/16
to django-users

This is task for apache not for django.
G
26 лют. 2016 23:06 <dh...@edx.org> пише:
> no

> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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.

Reply all
Reply to author
Forward
0 new messages