Testing an app without a models.py file

12 views
Skip to first unread message

dor

unread,
Apr 22, 2012, 1:25:20 AM4/22/12
to django...@googlegroups.com
As of the latest version (1.4), this is impossible. What's the rationale behind it? Why isn't it fixed by now? If I make a fix, will it be accepted by the official team?

Rafał Stożek

unread,
Apr 22, 2012, 10:02:29 AM4/22/12
to django...@googlegroups.com
I don't think it has ever been possible. That's why people put empty models.py in their apps.

Michal Petrucha

unread,
Apr 22, 2012, 11:56:28 AM4/22/12
to django...@googlegroups.com
It is caused by the way Django loads and registers apps. Currently it
depends on each app having a models module. If I understand correctly,
the app loading refactor efforts [1] that have been around for a few
years now should fix this, among other things. The problem is, it is
quite a big change and it is not yet quite ready for merge.

You are welcome to check it out and do some testing, though, to help
it move forward.

In the meantime, I guess you'll have to keep adding empty models.py
files into such apps.

Michal


[1] https://code.djangoproject.com/ticket/3591
signature.asc
Reply all
Reply to author
Forward
0 new messages