Re: media directory for testing

2007-11-11 Thread Amit Ramon
Another solution is to use environment variables for the settings that are different. You can then use the same settings file for all different environments. All you have to do is to read the environment variables in the settings file, something like: DATABASE_NAME = os.environ["DATABASE_NAME"

Re: media directory for testing

2007-11-10 Thread Malcolm Tredinnick
On Sat, 2007-11-10 at 16:52 -0500, Faheem Mitha wrote: > > Hi. > > I'm having the following problem while testing. I'm writing a unit test > for a file upload (using newforms). This works. However, the file gets > written to the same media directory as is used in normal work. I'd prefer > th

media directory for testing

2007-11-10 Thread Faheem Mitha
Hi. I'm having the following problem while testing. I'm writing a unit test for a file upload (using newforms). This works. However, the file gets written to the same media directory as is used in normal work. I'd prefer this happened somewhere where it would have no impact on normal functio