Code

Opened 6 years ago

Closed 6 years ago

#9296 closed (duplicate)

loaddata is looking in the wrong folder if using model folder instead of models.py

Reported by: zhaoz Owned by: nobody
Component: Core (Management commands) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When using a folder for your models instead of a file. (e.g.: models/init.py instead of models.py), loaddata fails to look in <app_label>/fixtures, instead running in <app_label>/models/fixtures

The loaddata documentation.

Problem seems to be at: [source:django/trunk/django/core/management/commands/loaddata.py@9110#L55]

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by zhaoz

  • Component changed from Uncategorized to django-admin.py
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by zhaoz

  • Resolution set to duplicate
  • Status changed from new to closed

Seems like thsi bug has already been reported a *long* time ago

ticket:6961

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.