On 02/08/2006, at 10:29 PM, Jay Parlar wrote: yes. I have several 'sites' in a single DB. but at the moment i'm questioning the usefulness of it, due to it having a common 'user' table, and the cost of adding a new database is quite small. but to your question ;-) change the cookie name. for example car-chatter.com has SESSION_COOKIE_NAME ='revhead' and med-chatter.com has SESSION_COOKIE_NAME ='ithurtswhenidothis' both sites have different SECRET_KEY and SITE_ID's. look at the URL in the admin tool eg http://car-chatter.com /admin/sites/site/6/ that is the SITE_ID (6). i also have a line r'/usr/local/src/magik/itscales/site_%d_templates' % SITE_ID, in my TEMPLATE_DIRS which makes a bit easier ;-) 4 steps. 1. copy the settings.py to new-settings.py 2. add a site_id via the admin tool 3. configure new-settings.py, changing the cookie name, SITE_ID, and SECRET_KEY as above 4. clone your httpd.conf with so that it uses new-settings.py on your host. regards Ian
-- Ian Holsman join http://gyspsyjobs.com the marketplace for django developers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~--- |
- Re: Project when using multiple sites Ian Holsman
- Re: Project when using multiple sites Jay Parlar

