django subdomains apache config

Posted by bocca on Server Fault See other posts from Server Fault or by bocca
Published on 2010-01-28T04:07:32Z Indexed on 2011/02/01 23:28 UTC
Read the original article Hit count: 338

Filed under:
|

Trying to setup django to take subdomains and use different settings file based on subdomain

dns is setup as wildcards

apache mod_vhost_alias sounded like good option, it did not work

SetEnv DJANGO_SETTINGS_MODULE site.settings.%1

gets this error

ImportError: Could not import settings 'site.settings.%1'

can mod_vhost_alias be made to work somehow? can rewrite module be used to pass along subdomain to django settings? is there any other way to pick up different settings files based on subdomain

© Server Fault or respective owner

Related posts about apache

Related posts about django