You could assign DATABASE_PREFIX as an
environment variable, then have settings.py
get the value (untested):

  # settings.py
  import os
  DATABASE_PREFIX = os.environ['DATABASE_PREFIX']
  DATABASE_NAME = "site_%s_foo" % DATABASE_PREFIX

Then run manage.py from the command line:

  $ DATABASE_PREFIX="one" ./manage.py ...
  $ DATABASE_PREFIX="two" ./manage.py ...

--
Jeff Bauer
Rubicon, Inc.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to