Is it possible to have one 'master' Django website and N satellite websites
I am thinking of a configuration where I have one master website at:
www.masterdomain.com
and N satelite domains where I can access the satelite domains as follows:
www.masterdoma开发者_开发问答in.com/some_url/satetlite1.html www.masterdomain.com/some_url/satetlite2.html ... www.masterdomain.com/some_url/satetliteN.html
Is this possible?
The sites
Framework may interest you.
Django comes with an optional “sites” framework. It’s a hook for associating objects and functionality to particular Web sites, and it’s a holding place for the domain names and “verbose” names of your Django-powered sites.
Use it if your single Django installation powers more than one site and you need to differentiate between those sites in some way.
Also there are a couple of good blog post about that matter, e.g. this one:
- http://www.huyng.com/archives/franchising-running-multiple-sites-from-one-django-codebase-2/394/
精彩评论