Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » django test framework with no models.py [RSS Feed]

#1 Dec. 27, 2010 14:54:50

Henrik G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django test framework with no models.py


Hi,

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.

regards

henrik

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 27, 2010 20:48:18

Karen T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django test framework with no models.py


On Mon, Dec 27, 2010 at 9:58 AM, Henrik Genssen <henrik.gens...@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/7198The 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-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 30, 2010 14:14:07

Seth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django test framework with no models.py


On 12/27/2010 09:58 AM, Henrik Genssen wrote:
> Hi,
>
> 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

I worked around the same problem (in 1.2, at least) with just an empty
models.py file—I didn’t even need the “pass”.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » django test framework with no models.py [RSS Feed]

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support