django-manage: use django.conf.settings in _applist
This commit is contained in:
parent
aade0a773f
commit
c70a89a626
|
@ -224,10 +224,11 @@ _managepy-commands() {
|
||||||
_applist() {
|
_applist() {
|
||||||
local line
|
local line
|
||||||
local -a apps
|
local -a apps
|
||||||
_call_program help-command "python -c \"import os.path as op, re, settings, sys;\\
|
# NOTE: this could use "$_managepy_cmd diffsettings --all", but that's slower.
|
||||||
|
_call_program help-command "python -c \"import os.path as op, re, django.conf, sys;\\
|
||||||
bn=op.basename(op.abspath(op.curdir));[sys\\
|
bn=op.basename(op.abspath(op.curdir));[sys\\
|
||||||
.stdout.write(str(re.sub(r'^%s\.(.*?)$' %
|
.stdout.write(str(re.sub(r'^%s\.(.*?)$' %
|
||||||
bn, r'\1', i)) + '\n') for i in settings.\\
|
bn, r'\1', i)) + '\n') for i in django.conf.settings.\\
|
||||||
INSTALLED_APPS if re.match(r'^%s' % bn, i)]\"" \
|
INSTALLED_APPS if re.match(r'^%s' % bn, i)]\"" \
|
||||||
| while read -A line; do apps=($line $apps) done
|
| while read -A line; do apps=($line $apps) done
|
||||||
_values 'Application' $apps && ret=0
|
_values 'Application' $apps && ret=0
|
||||||
|
|
Loading…
Reference in New Issue