I have installed all three dependencies according to the document (Python 2.6, 2.7, 3.2 or higher. Django 1.2.7 or higher. django-classy-tags 0.3.1 or higher) But when I add ‘sekizai’ into my INSTALLED_APPS setting, and execute "manage.py runserver", it will report "ImportError: No module named sekizai" to me.
My contents in settings.py:
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'mptt',
'hw',
'useraccess',
'proxy',
'compressor',
'sekizai',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'useraccess.middleware.VisitCollectMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.i18n',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.static',
'hw.context_processors.user_info',
'hw.context_processors.login_form',
'hw.context_processors.get_all_user',
'sekizai.context_processors.sekizai',
)
just do
pip install https://pypi.python.org/packages/source/d/django-sekizai/django-sekizai-0.8.1.tar.gz
and you should be fine.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments