Opened 12 years ago

Closed 12 years ago

#19358 closed Bug (duplicate)

About Loading Initial SQL Data

Reported by: rsc_maceio@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

from documentation:

Django just looks for a file called sql/[modelname].sql, IN YOUR APP directory, where [modelname] is the model's name in lowercase.

But this doesn't work when the models lives in app's subfolders.

Ex:Project "CMS", App "Blog", models subfolder: "models"
Model Person: /blog/models/person.py

Custom Initial SQL:
/blog/sql/person.sql doesn't work.

BUT:
/blog/models/sql/person.sql works fine. Like this:

Django just looks for a file called sql/[modelname].sql, in your MODELS APP directory, where [modelname] is the model's name in lowercase.

Sorry for by bad english, I hope that it's clear.

Change History (1)

comment:1 by Claude Paroz, 12 years ago

Resolution: duplicate
Status: newclosed

Thanks for the report, but this has already been reported: #14300

Note: See TracTickets for help on using tickets.
Back to Top