Ich arbeite an Django 1.8. Ich möchte mit Django-Blog-Zinnia arbeiten. Ich habe Zinnia installiert, meine setup.py Datei geändert und Links in urls.py des Projekts hinzugefügt. als ich versuchte, Zinnie zuzugreifen Weblog verwendet als je auf Aufstellort'zinnia_loop_template' erhielt zu viele Positionsargumente
Weblog
erwähnt
ich einen Fehler bekam
'zinnia_loop_template' zu viele Positionsargumente empfangen
Ich bin neu dazu. Das ist mein setting.py Datei ""“
Django Einstellungen für newproject Projekt.
Erzeugt von 'django-admin startproject' mit Django 1.8 freundlicherweise mir sagen, wie diese
zu lösen.
weitere Informationen zu dieser Datei finden Sie
Für die vollständige Liste der Einstellungen und deren Werte finden
Build-Pfade innerhalb des Projekts wie folgt aus: os.path.join (BASE_DIR, ...) import os
BASE_DIR = os.path.dirname (os.path.dirname (os.path.abspath (Datei))))
SICHERHEITSHINWEIS: Halten Sie den geheimen Schlüssel in der Produktion geheim! Secret_key = '! F7P-J96 04oy 5wbuf & = g8vkm9deupxw9ywjq) + ef8wfjy = 5s ('
SICHERHEIT WARNUNG: laufen nicht mit Debug drehte in der Produktion auf DEBUG = True
allowed_hosts = []
Anwendungsdefinition
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', ' django.contr ib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_comments', 'MPTT', 'Tagging' 'zinnie')
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', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware ')
ROOT_URLCONF = 'newproject.urls'
templates = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': Stimmt, ' OPTIONS ': { 'context_processors': [ 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.template.context_processors.request', ' django.contrib. messages.context_processors.messages ', ' zinnia.context_processors.version ', # Optional ] }}]
SITE_ID = 1
WSGI_APPLICATION = 'newproject.wsgi.application'
DATABASES = { 'default': { 'Motor': ‚django.db.backends .sqlite3' , 'NAME': os.path.join (BASE_DIR, 'db.sqlite3'), }}
LANGUAGE_CODE = 'en-us'
TIME _ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/ static /'
Das ist mein urls.py Datei
von django.conf.urls Import enthalten, URL von django.contrib Import Admin
urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^weblog/', include('zinnia.urls')), url(r'^comments/', include('django_comments.urls')), ]
Bitte schreiben Sie Ihren Code und die vollständige Stack-Trace. – solarissmoke