I didn't realise there was a "settings" option for syncdb - it works
beautifully! I now have multi site with multiple databases and one
application installation! Cool...
On Oct 30, 11:29 am, Stodge wrote:
> Oops - this might be what I need:
>
> SetEnv DJANGO_SETTINGS_MODULE
Oops - this might be what I need:
SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings
So I created my new settings file that points to a different database
and made a new Apache alias to the new virtual Django site that I want
(so /django/fred instead of just /django). But how do I sync this
Sorry, forgot to say that is with mod_python.
On Oct 30, 10:48 am, Stodge wrote:
> Just wondering whether I could write a middleware that parsed
> request.path, say:
>
> /django/site1/index
>
> extracted and removed the site name as "site1" and switched the
> settings on the
Just wondering whether I could write a middleware that parsed
request.path, say:
/django/site1/index
extracted and removed the site name as "site1" and switched the
settings on the fly to use settings_site1.py instead.
settings_site1.py would use DB named "site1_db".
Then it would process the
4 matches
Mail list logo