Opened 17 years ago

Closed 17 years ago

#6243 closed (wontfix)

Add runscript command with support for scrip fixtures and app scripts

Reported by: Daniel Poelzleithner Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

While stresstesting we cam to the idea that auto generated fixtures are much easier to handle compared to
json dumps. Also we find simple scripts (much easier then real manage.py commands) very usefull.
For example every app gets a daily_cleanup.py script in the scripts subdirectory.

manage.py runscript daily_cleanup

runs the daily_cleanup script of all apps. this way the cleanup script is fine seperated for every app.

Attachments (1)

runscripts_1.diff (6.3 KB ) - added by Daniel Poelzleithner 17 years ago.
patch and docs for runscripts

Download all attachments as: .zip

Change History (3)

by Daniel Poelzleithner, 17 years ago

Attachment: runscripts_1.diff added

patch and docs for runscripts

comment:1 by Daniel Poelzleithner, 17 years ago

Triage Stage: UnreviewedReady for checkin

We used this script over two months now in internal development and worked very well.
one reason for example was, that the complex design of our application didn't work well with static fixtures, in fact it couldn't work by design, many data worked, but some could not.
for this we implemented the fixture part. a lot of other maintance work etc and daily cleanups scripts in different modules started to pop up. in a real modular design, every module has to be independend and therefor should implement cleanup scripts init.

comment:2 by Malcolm Tredinnick, 17 years ago

Resolution: wontfix
Status: newclosed

Thanks, but no. We've already decided against doing this a few times in the past. Also, with recent Django versions, you can achieve the same thing by writing your own management commands. There's another ticket open to move daily_cleanup and a couple of other utilities into management commands as well.

[In future, please don't promote your own patches to "ready for checkin". That bypasses one layer of triage and review, since the triagers will tend not to look at tickets that are already marked "ready for checkin".]

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