Monday, December 27, 2010

Re: django test framework with no models.py

On Mon, Dec 27, 2010 at 9:58 AM, Henrik Genssen <henrik.genssen@miadi.net> wrote:
I wanted to write a test for an app, that does not have a models.py itself.
Doing so I get:
django.core.exceptions.ImproperlyConfigured: App with label service could not be found

if I create a models.py with just a "pass" in it everything works as expected.
I use Django 1.1

Is this a bug or a feature? Did not find any hint on this in the docs.

Not sure how I would classify it, but there is a ticket open for it:

http://code.djangoproject.com/ticket/7198

The workaround is pretty simple, though, so I would guess that is why it has not gotten much attention.

Karen
--
http://tracey.org/kmt/

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