How to run unittest under pydev for Django?
- by photon
I configured properties for my django project under pydev. I can run the django app under pydev or under console window. I can also run unittest for app under console window. But I have problems to run unittest under pydev.
I guess it's something related to run configurations of pydev, so I made several trials, but with no success.
Once I got messages like this:
ImportError: Could not import settings 'D:\django_projects\MyProject' (Is it on sys.path? Does it have syntax errors?): No module named D:\django_projects\MyProject
ERROR: Module: MyUnittestFile could not be imported.
Another time I got messages like this:
ImportError: Could not import settings 'MyProject.settngs' (Is it on sys.path? Does it have syntax errors?): No module named settngs
'ERROR: Module: MyUnittestFile could not be imported.
I use pydev 1.5.6 on eclipse and windows xp.
Any ideas for this problem?