Opened 9 years ago

Closed 9 years ago

#2868 closed enhancement (wontfix)

[patch] Allow use of to run maintenance scripts

Reported by: adurdin@… Owned by: adrian
Component: Core (Management commands) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The attached patch adds a 'runscript' action to that takes a script path as its sole argument.

This is intended to make running maintenance scripts more convenient, and require less repetition (as DJANGO_SETTINGS_MODULE need not be set if used from

Attachments (1)

runscript.diff (1.5 KB) - added by adurdin@… 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by adurdin@…

comment:1 Changed 9 years ago by ubernostrum

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

Duplicate of #2406.

comment:2 Changed 9 years ago by adurdin@…

  • Resolution duplicate deleted
  • Status changed from closed to reopened

Although this patch has the same motivation, I don't think it's a duplicate of #2406, as the implementations are very different. This one is just a convenience for running a python script within a Django project in the same way that ' shell' is a convenience for starting an interactive shell in a Django project.

comment:3 Changed 9 years ago by Simon G. <dev@…>

  • Needs documentation set
  • Triage Stage changed from Unreviewed to Design decision needed
  • Version set to SVN

comment:4 Changed 9 years ago by russellm

  • Resolution set to wontfix
  • Status changed from reopened to closed isn't magic - it does an import settings, then calls the management module (open up if you want proof). Do the same on your script, and it will behave the same as

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