#6883 closed (duplicate)
Some manage Commands Ignore Apps Without a models.py file
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Keywords: | manage fixture test syncdb unittest models.py | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am aware of at least two manage.py operations that do not work intuitively if apps do not contain a models.py file: loading initial data fixtures and running unit tests. For example, if you have an app that contains an "initial_data" fixture but does not contain a models.py file, running syncdb does not pick up the fixture even though the app is explicitly listed in INSTALLED_APPS. Similarly unit tests will not run as reported here:
http://siddhi.blogspot.com/2008/03/why-does-django-not-find-your-unit.html
Change History (2)
comment:1 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Yes, I did search the ticket tracker and spent about ten minutes looking through the results for relevant issues. I apologize that I missed the open issues. A few of my queries returned 20+ pages of results. I guess it was too much trouble for you to include those ticket numbers here so I and others could track those issues.
Both of these are known issues already reported. Please do search the ticket tracker before filing new tickets.