#5896 closed (invalid)
initial SQL pathname incorrect in doc
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On the "model-api" documentation page, the pathname in the section "Providing initial SQL data" is incorrect. It references "app / sql / model.sql", but judging from the code the correct path is "app / model / sql / object.sql".
Attachments (1)
Change History (5)
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 17 years ago
comment:2 by , 17 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
comment:3 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
There's no bug here.
We test the current behaviour in regressiontests/initial_sql_regress/ (although that test doesn't completely validate that the initial SQL is executed, you can check that by putting a syntax error in the file). Note that app_dir in the method arien points to has "sql" on the end of it. So <app_dir>/sql
is the correct location.
comment:4 by , 17 years ago
The os.path.join(..., 'sql') slipped by me. The variable name 'app_dir' is somewhat misleading in this context, but you are right, there's no real bug here. Sorry about that. :-)
django.core.management.sql.custom_sql_for_model says it's one of: