#981 closed enhancement (fixed)
SQL insert files located in every app should be documented
Reported by: | GomoX | Owned by: | Jacob |
---|---|---|---|
Component: | Documentation | Version: | |
Severity: | normal | Keywords: | |
Cc: | gomo@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On django-admin.py install [app], the file [app]/sql/[modelname].sql gets piped to the database if it exists. This is useful for regenerating test data when developing new applications where the DB must be smashed repeatedly. I think it should be documented somewhere in docs/model_api or at least in the FAQ.
Change History (4)
comment:1 by , 19 years ago
Cc: | added |
---|
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 19 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Type: | defect → enhancement |
It should be also documented that users can get database engine-specific
initial SQL data/statements to be loaded/executed at this stage, see
Also, maybe a note about the fact that there is no specific guaranteed order
of execution for those files could be added, see
Regards,
(In [2942]) Fixed #981 -- documented the SQL initial data insert files.