On 20 January 2011 22:26, Andrew Marder <andrew.ei.mar...@gmail.com> wrote:
> Has anyone had any luck setting up testing databases with mongo? Right
> now I'm using pymongo in a single app, and I thought it would be cool
> if in that app I could see if my code was being tested and in that
> case I could use a different database. Problem is there doesn't seem
> to be an environment variable in Django that will tell me whether my
> code is being tested.


In one of the projects I worked on, we used a separate settings file
for testing. You could implement your own flag in there.

cheers,
Konrad

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to