database defined in settings, if you're using 1.2 or greater.
http://docs.djangoproject.com/en/1.3/ref/settings/#databases
This doesn't help if the same host is being used, but you can get around
this by creating a second settings file and using it during your tests.
In your second settings file, (let's call it test_settings.py), you
would only import the main settings and then override what you have to.
from settings import *
DATABASES['your_oracle_db'] = {'host': 'new_host', 'port': 1234}
Then run your tests by passing --settings=test_settings instead of using
the default.
Be careful not to change too much in your alternate settings file or you
run the risk of testing something too different than your real setup and
missing a flaw.
Shawn
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment