Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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 anonymous, 18 years ago

Cc: gomo@… added

comment:2 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [2942]) Fixed #981 -- documented the SQL initial data insert files.

comment:3 by Ramiro Morales, 18 years ago

Resolution: fixed
Status: closedreopened
Type: defectenhancement

It should be also documented that users can get database engine-specific
initial SQL data/statements to be loaded/executed at this stage, see

http://code.djangoproject.com/changeset/737

Also, maybe a note about the fact that there is no specific guaranteed order
of execution for those files could be added, see

http://groups.google.com/group/django-users/browse_frm/thread/f0099877b8eb9927/6558746fbc09ebf6#6558746fbc09ebf6

Regards,

comment:4 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [2953].

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