Sunday, October 3, 2010

Mongo - testing

Hello,

A couple of questions regarding nosql. I am interested in MongoDB in
particular, but general answers are also ok.

* Is there any work going on in Django to support nosql databases? I
am aware of django-nonrel but will nosql support be a part of Django
core or contrib sometime? If yes, what is the expected time frame?

* Since there is no support for nosql right now, how are we supposed
to write tests? I am working on a project which uses pymongo to
connect to MongoDB. However, the tests don't work, since Django is
not able to create a test database. What is the recommended way to
solve this problem? I have googled a bit and seen solutions like -
http://www.valyagolev.net/article/mon_django_growing/. However, I
don't want to go down this path since it seems to me that solutions
like this are copying core functionalities and editing it to suit the
need. I would think this would make getting changes from upsteam
(Django core) more difficult. I am currently thinking that I will
have a script to run the tests - so I can't do

$ python manage.py test cms but instead

$ python runserver.py cms

Does this sound reasonable or am I missing something.

--
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