Thanks Javier and Konrad!

I searched github a bit and it looks like django-mongokit has done
some work to solve this problem. I haven't used it yet, but it looks
promising.

Andrew

http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit

On Jan 21, 3:59 am, Konrad Delong <kon...@gmail.com> wrote:
> 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