Re: Architecture of multiple Sites

2016-03-23 Thread dhall
We ran into this problem and decided to extend Django's CurrentSiteMiddleware to allow for the specification of a default site to use in the case when you cannot determine the current site from the host of the incoming request. Description of problem: https://groups.google.com/forum/#!topic/ed

Default Site

2016-02-26 Thread dhall
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 c