help with ZINNIA

62 views
Skip to first unread message

antonio vangi

unread,
Aug 18, 2014, 11:17:35 AM8/18/14
to django-d...@googlegroups.com
Hallo,
sorry could someone help me fi installation of zinnia.

My pip freeze:

BeautifulSoup==3.2.1
Django==1.4.5
PIL==1.1.7
Pillow==2.5.2
South==1.0
argparse==1.2.1
beautifulsoup4==4.3.2
django-blog-zinnia==0.11.1
django-contrib-comments==1.5
django-mptt==0.5.5
django-tagging==0.3.2
django-xmlrpc==0.1.5
docutils==0.12
pyparsing==2.0.2
pytz==2014.4
wsgiref==0.1.2

My settings file:
============================================================================================
"""
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/'

============================================================================================

I use:
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.
Antonio


James Bennett

unread,
Aug 18, 2014, 11:50:01 AM8/18/14
to django-d...@googlegroups.com
Two things:

1. This is django-developers, the list for discussing the development of Django itself. For questions about using Django or Django-based applications, please use the django-users mailing list.

2. You've just shared your SECRET_KEY setting publicly with thousands of people who received this email, and with the rest of the world through the public archive of this mailing list. You should change your SECRET_KEY setting immediately, and not share it in the future.
Reply all
Reply to author
Forward
0 new messages