Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » HOW TO? multiple sites, one virtual host, routing settings.py? [RSS Feed]

#1 June 21, 2010 19:46:55

r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

HOW TO? multiple sites, one virtual host, routing settings.py?


I'll soon be deploying a project that will need to be able to
dynamically add domains.

Each domain will have different users, separate data, and a different
SITE_ID, but will all run off a single Django instance. The data will
all be housed in a single database, since all domains' data will need
to be accessible together via a global admin panel.

I'm thinking that the simplest way to accomplish this on the hosting
level would be a wildcard VirtualHost, and a separate settings.py for
each site that simply specifies the SITE_ID and pulls in the global
settings.

Is there an easy way to route each domain to a separate settings file
using a single virtual host?

(I'm open to different server models -- leaning towards mod_wsgi but
happy to use FCGI or mod_python if they'll make this more
straightforward.)

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

Offline

  • Root
  • » Django
  • » HOW TO? multiple sites, one virtual host, routing settings.py? [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support