Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 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: UI/UX:

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.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by anonymous

  • Cc gomo@… added

comment:2 Changed 8 years ago by mtredinnick

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

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

comment:3 Changed 8 years ago by ramiro

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Type changed from defect to 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

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 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [2953].

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.