custom command added

This commit is contained in:
lxsameer 2011-05-23 15:32:46 +04:30
parent 4d6d4677e5
commit 2d566c1413
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,8 @@ binding for Kuso IDE django plugin"
(define-key-after global-map [menu-bar django manage runserver-extra] '("Development Server Extended" . django-runserver-extra) 'runserver)
(define-key-after global-map [menu-bar django manage syncdb] '("Syncdb" . django-syncdb) 'runserver-extra)
(define-key-after global-map [menu-bar django manage syncdb-extra] '("Syncdb with extra options" . django-syncdb-extra) 'syncdb)
(define-key-after global-map [menu-bar django manage custom-command] '("Custom Command" . django-command) 'syncdb-extra)
(define-key-after global-map [menu-bar django sep2] '("--") 'runserver-extra)
)
@ -164,6 +166,11 @@ binding for Kuso IDE django plugin"
(django-runserver args)
)
(defun django-command (command)
"Run the specified command with manage.py"
(interactive "sEnter command: ")
(manage-command "*Custom*" "custom" command)
)
;; ----------------------------------------------------------------------
;; Minor Modes
;; ----------------------------------------------------------------------