Wednesday, November 23, 2011

Re: Import error when unit testing with django.test.client on django 1.1.1

Hi

The error is:

> ImportError: Could not import settings 'DER.settings' (Is it on
> sys.path? Does it have syntax errors?): No module named DER.settings
> ERROR: Module: Test could not be imported (file:
> C:TFSSrc_BranchDER_UnitTestingboteststestListsTest.py).

You should google a bit on how to setup django tests with eclipse.
It looks like eclipse tests do not have your project in their paths
thus it doesn't find DER.settings.

Regards,
Xavier.

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