Re: selecting site from hostname in URL

2007-03-01 Thread Aidas Bendoraitis
Doug Van Horn was right. Each website has just one settings file. So the SITE_ID should just point to a some id of the Site object (http://example.com). Set ServerAlias *.example.com in the Apache settings for all subdomains to point to the same django project. And then in the views you can parse

Re: selecting site from hostname in URL

2007-02-28 Thread Doug Van Horn
On Feb 28, 6:33 pm, Michael Cuddy <[EMAIL PROTECTED]> wrote: > > Any ideas? > -- I would defer to those more fluent with Django, but my understanding of the sites framework is that there should be 1 site per settings file, and thus 1 per project or 'website'. With that said, I'm working on a sim