Hi!
 You can make settings for each site easily
first_settings.py
from settings import *
SITE_ID = 1
TEMPLATE_DIRECTORIES = ( [ ] )
[ other settings, which needs to be overrided ]

you can also override urls, etc with revelant settings.

if you want to use manage.py, you will need to use copy manage.py or patch
it, because by default settings path is hardcoded in it.

Sincerly yours,
Kristaps Kūlis

On Sat, Oct 3, 2009 at 1:41 AM, Joseph Wakeling
<joseph.wakel...@gmail.com>wrote:

>
> Hello all,
>
> I'm making some first steps with Django having worked my way through
> the tutorial.
>
> I'm finding myself somewhat confused by the sites module.  I would
> like to run two or three different sites.  It's trivial to 'create'
> them using the admin interface, and it's clear how different objects
> can be associated with sites, but what's not completely clear is how
> this relates to display of material.
>
> For example: I want each of my sites to have a completely different
> set of templates.  How do I set this up?  And how do I test this on my
> personal machine, using just the development server, where the actual
> sites (well, base URLs) don't exist?
>
> Second question (less important, but I'm curious): is it possible to
> set up some kind of 'master site' so that www.mastersite.com/mysite1
> and www.mastersite.com/mysite2 produce the same results, respectively,
> as www.mysite1.com and www.mysite2.com?
>
> The impression I get is that each site should have its own subdir with
> its own settings.py, urls.py etc. but I've not found any explicit
> statement/demonstration of this in the docs (least of all in the sites
> module documentation).
>
> Can anyone help?  I suspect this is trying to run before I can walk,
> but I'm experimenting, so why not.
>
> Thanks & best wishes,
>
>    -- Joe
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to