sorry could someone help me fi installation of zinnia.
============================================================================================
"""
Django settings for blogZ project.
For more information on this file, see
For the full list of settings and their values, see
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SITE_ID = 1
# Quick-start development settings - unsuitable for production
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'k26mbfv&*onj^v@zi!q96i9a5=*ae=@&(&vy7*@3x=nmb_+ws+'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
#'django.contrib.markup'
#'django_comments',
'south',
'mptt',
'tagging',
'zinnia',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
if DEBUG:
TEMPLATE_LOADERS = [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
]
else:
TEMPLATE_LOADERS = [
('django.template.loaders.cached.Loader',(
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'forum.modules.template_loader.module_templates_loader',
'forum.skins.load_template_source',
)),
]
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.i18n',
'django.core.context_processors.request',
#'zinnia.context_processors.version', # Optional
)
ROOT_URLCONF = 'zinnia.urls'
WSGI_APPLICATION = 'blogZ.wsgi.application'
# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Internationalization
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'
============================================================================================
mkvirtualenv --no-site-packages
----------------------------------------------
I have followed all the steps (syncdb, migrate and so on)
===================================================================================
on the web the errors is:
TemplateSyntaxError at /
'comments' is not a valid tag library: Template library comments not found, tried django.templatetags.comments,django.contrib.admin.templatetags.comments,django.contrib.staticfiles.templatetags.comments,mptt.templatetags.comments,tagging.templatetags.comments,zinnia.templatetags.comments
| Request Method: | GET |
|---|
| Request URL: | http://localhost:8000/ |
|---|
| Django Version: | 1.4.5 |
|---|
| Exception Type: | TemplateSyntaxError |
|---|
| Exception Value: | 'comments' is not a valid tag library: Template library comments not found, tried django.templatetags.comments,django.contrib.admin.templatetags.comments,django.contrib.staticfiles.templatetags.comments,mptt.templatetags.comments,tagging.templatetags.comments,zinnia.templatetags.comments |
|---|
| Exception Location: | /home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages/django/template/defaulttags.py in load, line 1043 |
|---|
| Python Executable: | /home/antonio/.virtualenvs/npopblog/bin/python |
|---|
| Python Version: | 2.7.3 |
|---|
| Python Path: | ['/home/antonio/NPOP-BLOG/blogZ',
'/home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages/pytz-2014.4-py2.7.egg',
'/home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages/pyparsing-2.0.2-py2.7.egg',
'/home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages/django_xmlrpc-0.1.5-py2.7.egg',
'/home/antonio/.virtualenvs/npopblog/lib/python2.7',
'/home/antonio/.virtualenvs/npopblog/lib/python2.7/plat-linux2',
'/home/antonio/.virtualenvs/npopblog/lib/python2.7/lib-tk',
'/home/antonio/.virtualenvs/npopblog/lib/python2.7/lib-old',
'/home/antonio/.virtualenvs/npopblog/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages',
'/home/antonio/.virtualenvs/npopblog/local/lib/python2.7/site-packages/PIL'] |
|---|
| Server time: | Mon, 18 Aug 2014 15:14:35 +0000 |
|---|
Thank's to avery body.