如何使用SHELL_PLUS_DONT_LOAD? django-extensions == 1.6.1,Django == 1.9.2

时间:2016-02-09 02:03:40

标签: python django django-extensions

我有以下设置:

SHELL_PLUS_DONT_LOAD = ['django.contrib.auth.models.User']

但是,当我运行python manage.py shell_plus时,仍会加载此模型。

# Shell Plus Model Imports
from [Redacted] import [Redacted]
from [Redacted] import [Redacted]
from django.contrib.admin.models import LogEntry
from django.contrib.auth.models import Group, Permission, User
from django.contrib.contenttypes.models import ContentType
from django.contrib.sessions.models import Session
# Shell Plus Django Imports
from django.conf import settings
from django.db import transaction
from django.core.urlresolvers import reverse
from django.db.models import Avg, Count, F, Max, Min, Sum, Q, Prefetch, Case, When
from django.utils import timezone
from django.core.cache import cache

有关如何调试此问题的任何提示或线索?

0 个答案:

没有答案