summaryrefslogtreecommitdiff
path: root/plugins/django
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/django')
-rw-r--r--plugins/django/README.md20
-rw-r--r--plugins/django/django.plugin.zsh5
2 files changed, 3 insertions, 22 deletions
diff --git a/plugins/django/README.md b/plugins/django/README.md
index 415f6b7ea..1740e55e5 100644
--- a/plugins/django/README.md
+++ b/plugins/django/README.md
@@ -34,23 +34,3 @@ runfcgi -- run this project as a fastcgi
runserver -- start a lightweight web server for development
...
```
-
-If you want to see the options available for a specific command, try:
-
-```zsh
-$> python manage.py makemessages (press <TAB> here)
-```
-
-And that would result in:
-
-```zsh
---all -a -- re-examine all code and templates
---domain -d -- domain of the message files (default: "django")
---extensions -e -- file extension(s) to examine (default: ".html")
---help -- display help information
---locale -l -- locale to process (default: all)
---pythonpath -- directory to add to the Python path
---settings -- python path to settings module
-...
-```
-
diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh
index 29a51d29d..c2d00c171 100644
--- a/plugins/django/django.plugin.zsh
+++ b/plugins/django/django.plugin.zsh
@@ -154,7 +154,7 @@ _managepy-makemessages(){
"--no-default-ignore[Don't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'.]" \
"--no-wrap[Don't break long message lines into several lines.]" \
"--no-location[Don't write '#: filename:line' lines.]" \
- '--no-obsolete[emove obsolete message strings.]' \
+ '--no-obsolete[Remove obsolete message strings.]' \
'--keep-pot[Keep .pot file after making messages.]' \
$nul_args && ret=0
}
@@ -374,7 +374,8 @@ _managepy-commands() {
_applist() {
local line
local -a apps
- _call_program help-command "python -c \"import os.path as op, re, django.conf, sys;\\
+ _call_program help-command "python -c \"import sys; del sys.path[0];\\
+ import os.path as op, re, django.conf;\\
bn=op.basename(op.abspath(op.curdir));[sys\\
.stdout.write(str(re.sub(r'^%s\.(.*?)$' %
bn, r'\1', i)) + '\n') for i in django.conf.settings.\\