Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6883 closed (duplicate)

Some manage Commands Ignore Apps Without a models.py file

Reported by: brian@… Owned by: nobody
Component: Core (Management commands) Version: master
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: UI/UX:

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

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Both of these are known issues already reported. Please do search the ticket tracker before filing new tickets.

comment:2 Changed 6 years ago by brian@…

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.