django subdomains apache config
- by bocca
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